diff options
| -rw-r--r-- | node/explosedicenode.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 |