aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/rerolldicenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'node/rerolldicenode.h')
-rw-r--r--node/rerolldicenode.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/node/rerolldicenode.h b/node/rerolldicenode.h
new file mode 100644
index 0000000..90dc81a
--- /dev/null
+++ b/node/rerolldicenode.h
@@ -0,0 +1,22 @@
+#ifndef REROLLDICENODE_H
+#define REROLLDICENODE_H
+
+
+#include "executionnode.h"
+
+/**
+ * @brief The RerollDiceNode class reroll dice given a condition and replace(or add) the result.
+ */
+class RerollDiceNode : public ExecutionNode
+{
+
+public:
+ enum ReRollMode {EQUAL,LESSER,GREATER};
+ RerollDiceNode(ExecutionNode* previous);
+
+ virtual void run();
+private:
+ ExecutionNode* m_previous;
+};
+
+#endif // REROLLDICENODE_H