aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explodedicenode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-01-30 01:27:15 +0100
committerRenaud G <renaud@rolisteam.org>2020-03-28 02:05:05 +0100
commit653ba9395a36cc20ec1d68c9a9cae78973fa334c (patch)
tree72753ed3bdca117baf001cdf8251b1fb22276eeb /node/explodedicenode.h
parent22d71d0032e2f44a8f267895aea3bd87864791b3 (diff)
downloadOneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.tar.gz
OneRoll-653ba9395a36cc20ec1d68c9a9cae78973fa334c.zip
add unicity and repeat function part2
Diffstat (limited to 'node/explodedicenode.h')
-rw-r--r--node/explodedicenode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/explodedicenode.h b/node/explodedicenode.h
index e72298a..77b4a44 100644
--- a/node/explodedicenode.h
+++ b/node/explodedicenode.h
@@ -3,8 +3,8 @@
#include "executionnode.h"
#include "result/diceresult.h"
-#include "validator.h"
-#include <QDebug>
+
+class ValidatorList;
/**
* @brief The ExplodeDiceNode class explode dice while is valid by the validator.
@@ -15,7 +15,7 @@ public:
ExplodeDiceNode();
virtual ~ExplodeDiceNode();
virtual void run(ExecutionNode* previous= nullptr);
- virtual void setValidator(Validator*);
+ virtual void setValidatorList(ValidatorList*);
virtual QString toString(bool) const;
virtual qint64 getPriority() const;
@@ -23,7 +23,7 @@ public:
protected:
DiceResult* m_diceResult;
- Validator* m_validator;
+ ValidatorList* m_validatorList= nullptr;
};
#endif // EXPLOSEDICENODE_H