aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/die.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'die.cpp')
-rw-r--r--die.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/die.cpp b/die.cpp
index b1df42d..dc6576e 100644
--- a/die.cpp
+++ b/die.cpp
@@ -30,9 +30,19 @@ Die::Die()
{
uint seed = quintptr(this) + QDateTime::currentDateTime().toMSecsSinceEpoch();
qsrand(seed);
-}
+}
+Die::Die(const Die& die)
+{
+ m_value = die.m_value;
+ m_rollResult = die.m_rollResult;
+ m_selected = die.m_selected;
+ m_hasValue = die.m_hasValue;
+ m_displayStatus = die.m_displayStatus;
+ m_faces = die.m_faces;
+}
+
void Die::setValue(qint64 r)
{
m_value = r;