diff options
| author | 2020-01-30 01:27:15 +0100 | |
|---|---|---|
| committer | 2020-03-28 02:05:05 +0100 | |
| commit | 653ba9395a36cc20ec1d68c9a9cae78973fa334c (patch) | |
| tree | 72753ed3bdca117baf001cdf8251b1fb22276eeb /node/rerolldicenode.h | |
| parent | 22d71d0032e2f44a8f267895aea3bd87864791b3 (diff) | |
| download | OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.tar.gz OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.zip | |
add unicity and repeat function part2
Diffstat (limited to 'node/rerolldicenode.h')
| -rw-r--r-- | node/rerolldicenode.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/node/rerolldicenode.h b/node/rerolldicenode.h index 32fad79..68b732e 100644 --- a/node/rerolldicenode.h +++ b/node/rerolldicenode.h @@ -3,7 +3,8 @@ #include "executionnode.h" #include "result/diceresult.h" -#include "validator.h" + +class ValidatorList; /** * @brief The RerollDiceNode class reroll dice given a condition and replace(or add) the result. */ @@ -38,7 +39,7 @@ public: /** * @brief setValidator */ - virtual void setValidator(Validator*); + virtual void setValidatorList(ValidatorList*); /** * @brief toString * @return @@ -61,7 +62,7 @@ public: private: DiceResult* m_diceResult= nullptr; - Validator* m_validator= nullptr; + ValidatorList* m_validatorList= nullptr; ExecutionNode* m_instruction= nullptr; const bool m_reroll; |