From 24d48effb863e458c00dcb1bea1ad5aa82309599 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 6 Mar 2015 00:27:37 +0100 Subject: -Add new node to roll die as value of list. --- node/listsetrollnode.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'node/listsetrollnode.h') 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 + +#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 -- cgit v1.2.3-70-g09d2