diff options
| author | 2014-01-08 18:03:20 +0100 | |
|---|---|---|
| committer | 2014-01-08 18:03:20 +0100 | |
| commit | 17954e79545845d4654043f23f8145f8e40dabb9 (patch) | |
| tree | ba47fd05e4fe3ba63f127a1fe1f05113e0a60dea /die.h | |
| parent | ed4de87f2518c63fc8a463b0f600ce37eb4749c4 (diff) | |
| download | OneRoll-17954e79545845d4654043f23f8145f8e40dabb9.tar.gz OneRoll-17954e79545845d4654043f23f8145f8e40dabb9.zip | |
Update die.h
add rolling die as method of die class
Diffstat (limited to 'die.h')
| -rw-r--r-- | die.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -9,6 +9,7 @@ public: Die(); void setValue(qint64 r); + void setFaces(quint64 face); void insertRollValue(qint64 r); void setSelected(bool b); @@ -19,6 +20,9 @@ public: bool hasChildrenValue(); + void roll(bool adding = false); + void replaceLastValue(qint64 value); + @@ -27,6 +31,7 @@ private: QList<qint64> m_rollResult; bool m_selected; bool m_hasValue; + quint64 m_faces; }; |