From f30020384f816b498fe1f6013758a8de37811821 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 29 Dec 2013 02:04:19 +0100 Subject: Firt commit of the new dice system for rolisteam. --- node/dicerollernode.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 node/dicerollernode.h (limited to 'node/dicerollernode.h') diff --git a/node/dicerollernode.h b/node/dicerollernode.h new file mode 100644 index 0000000..172d09d --- /dev/null +++ b/node/dicerollernode.h @@ -0,0 +1,25 @@ +#ifndef DICEROLLERNODE_H +#define DICEROLLERNODE_H + +#include "executionnode.h" + +class DiceRollerNode : public ExecutionNode +{ +public: + DiceRollerNode(quint64 faces); + + virtual void run(ExecutionNode*); + + //private method +private: + quint64 rollDice(); + + +//private members +private: + quint64 m_diceCount; + quint64 m_faces; /// faces + +}; + +#endif // DICEROLLERNODE_H -- cgit v1.2.3-70-g09d2