diff options
| author | 2024-10-23 15:42:08 +0200 | |
|---|---|---|
| committer | 2024-12-29 14:46:30 +0100 | |
| commit | cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea (patch) | |
| tree | c261de4ad8d0f85aec0200bf500e9579437577df /src/libparser/node/groupnode.h | |
| parent | e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901 (diff) | |
| download | OneRoll-cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea.tar.gz OneRoll-cb1dcb5ee28994a2cd691ad696a5ba4c3c3802ea.zip | |
Add execute node.
Diffstat (limited to 'src/libparser/node/groupnode.h')
| -rw-r--r-- | src/libparser/node/groupnode.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libparser/node/groupnode.h b/src/libparser/node/groupnode.h index d037080..72e795c 100644 --- a/src/libparser/node/groupnode.h +++ b/src/libparser/node/groupnode.h @@ -38,6 +38,7 @@ public: qint64 getExceptedValue() const; void setExceptedValue(qint64 exceptedValue); + void sort(); private: qint64 m_exceptedValue= 0; }; @@ -62,6 +63,10 @@ protected: bool composeWithPrevious(DieGroup previous, qint64 first, qint64 current, DieGroup& addValue); private: + DieGroup findPerfect(DieGroup values, int count, int currentValue) const; + DieGroup findCombo(DieGroup values, int count, int currentValue) const; + +private: ScalarResult* m_scalarResult; StringResult* m_stringResult; qint64 m_groupValue; |