aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-08 18:11:41 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-08 18:11:41 +0100
commit8c5f6e4303c376106e787a0983e594cfba3ed844 (patch)
treed5892ff0962ea853b0a8c8df152435ef39e0c233 /node
parent9cebf64aac402f2d63d06c3e67fc9a75b5b74b14 (diff)
downloadOneRoll-8c5f6e4303c376106e787a0983e594cfba3ed844.tar.gz
OneRoll-8c5f6e4303c376106e787a0983e594cfba3ed844.zip
Update rerolldicenode.h
add validator
Diffstat (limited to 'node')
-rw-r--r--node/rerolldicenode.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/node/rerolldicenode.h b/node/rerolldicenode.h
index 609fcf3..b87fafe 100644
--- a/node/rerolldicenode.h
+++ b/node/rerolldicenode.h
@@ -3,7 +3,8 @@
#include "executionnode.h"
-
+#include "diceresult.h"
+#include "validator.h"
/**
* @brief The RerollDiceNode class reroll dice given a condition and replace(or add) the result.
*/
@@ -15,8 +16,12 @@ public:
RerollDiceNode();
virtual void run(ExecutionNode* previous);
+
+ virtual void setValidator(Validator* );
+
private:
- qint64 m_value;
+ Validator* m_validator;
+ DiceResult* m_myDiceResult;
};
#endif // REROLLDICENODE_H