aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/rerolldicenode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/rerolldicenode.cpp')
-rw-r--r--node/rerolldicenode.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/node/rerolldicenode.cpp b/node/rerolldicenode.cpp
new file mode 100644
index 0000000..45f27de
--- /dev/null
+++ b/node/rerolldicenode.cpp
@@ -0,0 +1,25 @@
+#include "rerolldicenode.h"
+
+RerollDiceNode::RerollDiceNode(ExecutionNode* previous)
+ : m_previous(previous)
+{
+
+}
+void RerollDiceNode::run()
+{
+ if((NULL!=m_previous)&&(NULL!=m_previous->getResult()))
+ {
+ QList<qint64> list = m_previous->getResult()->getResultList();
+
+
+ for(qint64 i=0; i < list.size() ; ++i)
+ {
+ // m_result.insertResult(rollDice());
+ }
+ if(NULL!=m_nextNode)
+ {
+ m_nextNode->run(this);
+ }
+ }
+}
+