aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-10 10:41:20 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-10 10:41:20 +0100
commitab5615e6dfde7fb0fa2b57e8bcbe34b831c47294 (patch)
tree2f79857508901da550fbedc2ab6d55448dc106a8 /node
parent1c42208709b1040a2b213259cdaff5ee855cabab (diff)
downloadOneRoll-ab5615e6dfde7fb0fa2b57e8bcbe34b831c47294.tar.gz
OneRoll-ab5615e6dfde7fb0fa2b57e8bcbe34b831c47294.zip
Create explosedicenode.h
Adding explosing dice node
Diffstat (limited to 'node')
-rw-r--r--node/explosedicenode.h25
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