aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explodedicenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'node/explodedicenode.h')
-rw-r--r--node/explodedicenode.h28
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