diff options
| author | 2015-06-09 08:44:49 +0200 | |
|---|---|---|
| committer | 2015-06-09 08:44:49 +0200 | |
| commit | 2d9fe10724dc1d5de86e63670536b9a1b6599ba1 (patch) | |
| tree | 5341bf5d7f7b3236cac12791ea547644302f987b /node/listsetrollnode.h | |
| parent | 88e5130bd86992819a036ef982733b5ee344d656 (diff) | |
| download | OneRoll-2d9fe10724dc1d5de86e63670536b9a1b6599ba1.tar.gz OneRoll-2d9fe10724dc1d5de86e63670536b9a1b6599ba1.zip | |
-add method to read list with probability value. It sets range for all
values in List node.
Diffstat (limited to 'node/listsetrollnode.h')
| -rw-r--r-- | node/listsetrollnode.h | 11 |
1 files changed, 10 insertions, 1 deletions
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<Range>&); + + +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<Range> m_rangeList; }; #endif // LISTSETROLLNODE_H |