diff options
| author | 2018-05-26 20:04:25 +0200 | |
|---|---|---|
| committer | 2018-06-01 13:51:59 +0200 | |
| commit | 00b6a6a04b341d5a6332083425e3524349cef521 (patch) | |
| tree | db53bd3f8532a702177458423fede3e3dd521f8e /node/explodedicenode.h | |
| parent | a16c3814e81502f1ff97b68ecf8ab5498bca7095 (diff) | |
| download | OneRoll-00b6a6a04b341d5a6332083425e3524349cef521.tar.gz OneRoll-00b6a6a04b341d5a6332083425e3524349cef521.zip | |
rename "exploSe" to "exploDe"
Diffstat (limited to 'node/explodedicenode.h')
| -rw-r--r-- | node/explodedicenode.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/node/explodedicenode.h b/node/explodedicenode.h new file mode 100644 index 0000000..feea86f --- /dev/null +++ b/node/explodedicenode.h @@ -0,0 +1,28 @@ +#ifndef EXPLOSEDICENODE_H +#define EXPLOSEDICENODE_H + +#include "executionnode.h" +#include "result/diceresult.h" +#include "validator.h" +#include <QDebug> + +/** + * @brief The ExplodeDiceNode class explode dice while is valid by the validator. + */ +class ExplodeDiceNode : public ExecutionNode +{ +public: + ExplodeDiceNode(); + virtual ~ExplodeDiceNode(); + virtual void run(ExecutionNode* previous = nullptr); + virtual void setValidator(Validator* ); + virtual QString toString(bool )const; + virtual qint64 getPriority() const; + + virtual ExecutionNode *getCopy() const; +protected: + DiceResult* m_diceResult; + Validator* m_validator; +}; + +#endif // EXPLOSEDICENODE_H |