diff options
| author | 2019-07-10 11:54:09 +0200 | |
|---|---|---|
| committer | 2019-07-10 11:54:09 +0200 | |
| commit | 51f9064933ee08afeb774fe962617572a992d0c5 (patch) | |
| tree | 41d747e3a17f334d7c42de1707e4e77dce65940a /node/forloopnode.h | |
| parent | 4dddfd6d1821ca3537849243e37d064f75e3b37d (diff) | |
| download | OneRoll-51f9064933ee08afeb774fe962617572a992d0c5.tar.gz OneRoll-51f9064933ee08afeb774fe962617572a992d0c5.zip | |
Add forloopnode - experiemental
it is not compiled
Diffstat (limited to 'node/forloopnode.h')
| -rw-r--r-- | node/forloopnode.h | 36 |
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 |