aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/die.h
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-08 18:03:20 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-08 18:03:20 +0100
commit17954e79545845d4654043f23f8145f8e40dabb9 (patch)
treeba47fd05e4fe3ba63f127a1fe1f05113e0a60dea /die.h
parented4de87f2518c63fc8a463b0f600ce37eb4749c4 (diff)
downloadOneRoll-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/die.h b/die.h
index 783efb9..e949d81 100644
--- a/die.h
+++ b/die.h
@@ -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;
};