aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explodedicenode.h
diff options
context:
space:
mode:
authorRobin Moussu <robin.moussu+git@gmail.com>2018-05-26 20:04:25 +0200
committerobiwankennedy <renaud@rolisteam.org>2018-06-01 13:51:59 +0200
commit00b6a6a04b341d5a6332083425e3524349cef521 (patch)
treedb53bd3f8532a702177458423fede3e3dd521f8e /node/explodedicenode.h
parenta16c3814e81502f1ff97b68ecf8ab5498bca7095 (diff)
downloadOneRoll-00b6a6a04b341d5a6332083425e3524349cef521.tar.gz
OneRoll-00b6a6a04b341d5a6332083425e3524349cef521.zip
rename "exploSe" to "exploDe"
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