diff options
| author | 2014-01-05 13:12:05 +0100 | |
|---|---|---|
| committer | 2014-01-05 13:12:05 +0100 | |
| commit | 3853227d5852f45341c1ee49be4411ada78d860c (patch) | |
| tree | 12bd626e68a445b37e0c3870a996aedf8552a5c8 /node/dicerollernode.cpp | |
| parent | 4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6 (diff) | |
| download | OneRoll-3853227d5852f45341c1ee49be4411ada78d860c.tar.gz OneRoll-3853227d5852f45341c1ee49be4411ada78d860c.zip | |
Add new management of result.
It may require to make several
Diffstat (limited to 'node/dicerollernode.cpp')
| -rw-r--r-- | node/dicerollernode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp index c21b53c..f068f4b 100644 --- a/node/dicerollernode.cpp +++ b/node/dicerollernode.cpp @@ -1,4 +1,6 @@ #include "dicerollernode.h" +#include "die.h" + #include <QDateTime> #include <QDebug> @@ -16,7 +18,9 @@ void DiceRollerNode::run(ExecutionNode* previous) m_diceCount = previous->getResult()->getSum(); for(quint64 i=0; i < m_diceCount ; ++i) { - m_result.insertResult(rollDice()); + Die die; + die.setValue(rollDice()); + m_result.insertResult(die); } if(NULL!=m_nextNode) { |