From 2d9fe10724dc1d5de86e63670536b9a1b6599ba1 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 9 Jun 2015 08:44:49 +0200 Subject: -add method to read list with probability value. It sets range for all values in List node. --- node/listsetrollnode.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'node/listsetrollnode.h') diff --git a/node/listsetrollnode.h b/node/listsetrollnode.h index 3102ade..4a11da2 100644 --- a/node/listsetrollnode.h +++ b/node/listsetrollnode.h @@ -27,6 +27,7 @@ #include "executionnode.h" #include "result/diceresult.h" #include "result/stringresult.h" +#include "range.h" /** * @brief The ListSetRollNode class is dedicated to pick up item from list. */ @@ -41,12 +42,20 @@ public: QStringList getList(); void setListValue(QStringList); + void setUnique(bool ); + void setRangeList(QList&); + + +private: + void getValueFromDie(Die* die,QStringList& rollResult); + void computeFacesNumber(Die* die); private: QStringList m_values; DiceResult* m_diceResult; StringResult* m_stringResult; - + bool m_unique; + QList m_rangeList; }; #endif // LISTSETROLLNODE_H -- cgit v1.2.3-70-g09d2 From 1dc11051931fd074b886a4e1fe0df5d747e87e20 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 11:58:30 +0200 Subject: add bool parameter --- node/listsetrollnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/listsetrollnode.h') diff --git a/node/listsetrollnode.h b/node/listsetrollnode.h index 4a11da2..5f381f5 100644 --- a/node/listsetrollnode.h +++ b/node/listsetrollnode.h @@ -37,7 +37,7 @@ public: ListSetRollNode(); virtual ~ListSetRollNode(); virtual void run(ExecutionNode* previous = NULL); - virtual QString toString()const; + virtual QString toString(bool)const; virtual qint64 getPriority() const; QStringList getList(); -- cgit v1.2.3-70-g09d2