diff options
| author | 2015-03-06 00:27:37 +0100 | |
|---|---|---|
| committer | 2015-03-06 00:27:37 +0100 | |
| commit | 24d48effb863e458c00dcb1bea1ad5aa82309599 (patch) | |
| tree | 0fdf055720469553c37329bb4cf2042d597aae1e /node/listsetrollnode.h | |
| parent | 3bae1f62ba10e60a8156523a5b0502cc1efafd6d (diff) | |
| download | OneRoll-24d48effb863e458c00dcb1bea1ad5aa82309599.tar.gz OneRoll-24d48effb863e458c00dcb1bea1ad5aa82309599.zip | |
-Add new node to roll die as value of list.
Diffstat (limited to 'node/listsetrollnode.h')
| -rw-r--r-- | node/listsetrollnode.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/node/listsetrollnode.h b/node/listsetrollnode.h index 006557b..26fb378 100644 --- a/node/listsetrollnode.h +++ b/node/listsetrollnode.h @@ -1,10 +1,29 @@ #ifndef LISTSETROLLNODE_H #define LISTSETROLLNODE_H + +#include <QStringList> + +#include "executionnode.h" +#include "result/diceresult.h" +#include "result/stringresult.h" + class ListSetRollNode : public ExecutionNode { public: ListSetRollNode(); + virtual void run(ExecutionNode* previous = NULL); + virtual QString toString()const; + virtual qint64 getPriority() const; + QStringList getList(); + + void setListValue(QStringList); + +private: + QStringList m_values; + DiceResult* m_diceResult; + StringResult* m_stringResult; + }; #endif // LISTSETROLLNODE_H |