blob: 45f27de5284eb952b6db708652cf7be487ff4fbe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}
}
}
|