aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/die.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-01-05 13:12:05 +0100
committerRenaud G <renaud@rolisteam.org>2014-01-05 13:12:05 +0100
commit3853227d5852f45341c1ee49be4411ada78d860c (patch)
tree12bd626e68a445b37e0c3870a996aedf8552a5c8 /die.cpp
parent4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6 (diff)
downloadOneRoll-3853227d5852f45341c1ee49be4411ada78d860c.tar.gz
OneRoll-3853227d5852f45341c1ee49be4411ada78d860c.zip
Add new management of result.
It may require to make several
Diffstat (limited to 'die.cpp')
-rw-r--r--die.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/die.cpp b/die.cpp
new file mode 100644
index 0000000..7dde880
--- /dev/null
+++ b/die.cpp
@@ -0,0 +1,34 @@
+#include "die.h"
+
+Die::Die()
+{
+}
+
+void Die::setValue(qint64 r)
+{
+ m_value = r;
+}
+
+void Die::insertRollValue(qint64 r)
+{
+ m_rollResult.insert(r);
+}
+
+void Die::setSelected(bool b)
+{
+ m_selected = b;
+}
+
+
+bool Die::isSelected() const
+{
+ return m_selected;
+}
+qint64 Die::getValue() const
+{
+ return m_value;
+}
+QList<qint64> Die::getListValue() const
+{
+ return m_rollResult;
+}