aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/valueslistnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-10 11:49:45 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-12 22:06:35 +0200
commit9698a39a46f736cf37e31f8940e7c1a0a164185b (patch)
tree2193ae89ae6cfb59d7b6eed443992bd0245ac5a4 /node/valueslistnode.h
parent64ca7904fd36ad86826b5d5c72f47ffdf0ff365a (diff)
downloadOneRoll-9698a39a46f736cf37e31f8940e7c1a0a164185b.tar.gz
OneRoll-9698a39a46f736cf37e31f8940e7c1a0a164185b.zip
Add valueslistnode
Diffstat (limited to 'node/valueslistnode.h')
-rw-r--r--node/valueslistnode.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/node/valueslistnode.h b/node/valueslistnode.h
new file mode 100644
index 0000000..100f275
--- /dev/null
+++ b/node/valueslistnode.h
@@ -0,0 +1,24 @@
+#ifndef VALUESLISTNODE_H
+#define VALUESLISTNODE_H
+
+#include "executionnode.h"
+#include "result/diceresult.h"
+
+class ValuesListNode : public ExecutionNode
+{
+public:
+ ValuesListNode();
+
+ virtual void run(ExecutionNode* previous= nullptr) override;
+ virtual QString toString(bool) const override;
+ virtual qint64 getPriority() const override;
+ virtual ExecutionNode* getCopy() const override;
+
+ void insertValue(ExecutionNode*);
+
+private:
+ std::vector<ExecutionNode*> m_data;
+ DiceResult* m_diceResult = nullptr;
+};
+
+#endif // VALUESLISTNODE_H