aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@buf.com>2015-05-15 14:48:45 +0200
committerRenaud G <renaud@buf.com>2015-05-15 14:48:45 +0200
commit03cae353e4a070391850118b5c7e2b5ce4c8828f (patch)
tree7ad21d6b910146cbb43a01938458eb0c7d67fea2 /node/dicerollernode.h
parent74b931cd4dd5af57ee7e34948a92dad62733d722 (diff)
downloadOneRoll-03cae353e4a070391850118b5c7e2b5ce4c8828f.tar.gz
OneRoll-03cae353e4a070391850118b5c7e2b5ce4c8828f.zip
add management of base, the minimum value of die
Diffstat (limited to 'node/dicerollernode.h')
-rw-r--r--node/dicerollernode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/node/dicerollernode.h b/node/dicerollernode.h
index 744a4b5..726676e 100644
--- a/node/dicerollernode.h
+++ b/node/dicerollernode.h
@@ -25,7 +25,7 @@
class DiceRollerNode : public ExecutionNode
{
public:
- DiceRollerNode(quint64 faces);
+ DiceRollerNode(quint64 faces, qint64 offset = 1);
virtual void run(ExecutionNode*);
quint64 getFaces();
@@ -37,6 +37,7 @@ private:
quint64 m_diceCount;
quint64 m_faces; /// faces
DiceResult* m_diceResult;
+ qint64 m_offset;
};
#endif // DICEROLLERNODE_H