From ab5615e6dfde7fb0fa2b57e8bcbe34b831c47294 Mon Sep 17 00:00:00 2001 From: obiwankennedy Date: Fri, 10 Jan 2014 10:41:20 +0100 Subject: Create explosedicenode.h Adding explosing dice node --- node/explosedicenode.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node/explosedicenode.h (limited to 'node/explosedicenode.h') diff --git a/node/explosedicenode.h b/node/explosedicenode.h new file mode 100644 index 0000000..911126f --- /dev/null +++ b/node/explosedicenode.h @@ -0,0 +1,25 @@ +#ifndef EXPLOSEDICENODE_H +#define EXPLOSEDICENODE_H + +#include "executionnode.h" +#include "diceresult.h" +#include "validator.h" + +/** + * @brief The ExploseDiceNode class explose dice while is valid by the validator. + */ +class ExploseDiceNode : public ExecutionNode +{ +public: + ExploseDiceNode(); + virtual void run(ExecutionNode* previous = NULL); + + virtual void setValidator(Validator* ); + + +protected: + DiceResult* m_diceResult; + Validator* m_validator; +}; + +#endif // EXPLOSEDICENODE_H -- cgit v1.2.3-70-g09d2