From f30020384f816b498fe1f6013758a8de37811821 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 29 Dec 2013 02:04:19 +0100 Subject: Firt commit of the new dice system for rolisteam. --- node/rerolldicenode.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 node/rerolldicenode.h (limited to 'node/rerolldicenode.h') 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 -- cgit v1.2.3-70-g09d2