aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/explodedicenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparser/node/explodedicenode.h')
-rw-r--r--src/libparser/node/explodedicenode.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/libparser/node/explodedicenode.h b/src/libparser/node/explodedicenode.h
new file mode 100644
index 0000000..77b4a44
--- /dev/null
+++ b/src/libparser/node/explodedicenode.h
@@ -0,0 +1,29 @@
+#ifndef EXPLOSEDICENODE_H
+#define EXPLOSEDICENODE_H
+
+#include "executionnode.h"
+#include "result/diceresult.h"
+
+class ValidatorList;
+
+/**
+ * @brief The ExplodeDiceNode class explode dice while is valid by the validator.
+ */
+class ExplodeDiceNode : public ExecutionNode
+{
+public:
+ ExplodeDiceNode();
+ virtual ~ExplodeDiceNode();
+ virtual void run(ExecutionNode* previous= nullptr);
+ virtual void setValidatorList(ValidatorList*);
+ virtual QString toString(bool) const;
+ virtual qint64 getPriority() const;
+
+ virtual ExecutionNode* getCopy() const;
+
+protected:
+ DiceResult* m_diceResult;
+ ValidatorList* m_validatorList= nullptr;
+};
+
+#endif // EXPLOSEDICENODE_H