aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/forloopnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-10 11:54:09 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-12 22:06:40 +0200
commit0351038352f4f22f5a114abe875fb58d55183a86 (patch)
treed720c613874732ec127db476b844f83c5fd61e4a /node/forloopnode.h
parent2b1abc365f2d7b262e92e3d418a41e4f6d981fcb (diff)
downloadOneRoll-0351038352f4f22f5a114abe875fb58d55183a86.tar.gz
OneRoll-0351038352f4f22f5a114abe875fb58d55183a86.zip
Add forloopnode - experiemental
it is not compiled
Diffstat (limited to 'node/forloopnode.h')
-rw-r--r--node/forloopnode.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/node/forloopnode.h b/node/forloopnode.h
new file mode 100644
index 0000000..a9acf20
--- /dev/null
+++ b/node/forloopnode.h
@@ -0,0 +1,36 @@
+#ifndef FORLOOPNODE_H
+#define FORLOOPNODE_H
+
+#include "executionnode.h"
+#include "result/diceresult.h"
+#include <memory>
+
+class MockNode : public ExecutionNode
+{
+public:
+ MockNode();
+ void run(ExecutionNode* node);
+ void setResult(Result* result);
+ QString toString(bool withLabel) const;
+ qint64 getPriority() const;
+ ExecutionNode* getCopy() const;
+};
+
+class ForLoopNode : public ExecutionNode
+{
+public:
+ ForLoopNode();
+ void run(ExecutionNode* previous);
+
+ void setInternal(ExecutionNode* internal);
+
+ QString toString(bool withLabel) const;
+ qint64 getPriority() const;
+ ExecutionNode* getCopy() const;
+
+private:
+ std::unique_ptr<ExecutionNode> m_internal;
+ DiceResult* m_diceResult;
+};
+
+#endif // FORLOOPNODE_H