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/executionnode.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node/executionnode.h (limited to 'node/executionnode.h') diff --git a/node/executionnode.h b/node/executionnode.h new file mode 100644 index 0000000..2d81556 --- /dev/null +++ b/node/executionnode.h @@ -0,0 +1,20 @@ +#ifndef EXECUTIONNODE_H +#define EXECUTIONNODE_H + +#include "diceresult.h" + +class ExecutionNode +{ +public: + ExecutionNode(); + virtual ~ExecutionNode(); + virtual void run(ExecutionNode* previous = NULL)=0; + DiceResult* getResult(); + void setNextNode(ExecutionNode*); + ExecutionNode* getNextNode(); +protected: + DiceResult m_result; + ExecutionNode* m_nextNode; +}; + +#endif // EXECUTIONNODE_H -- cgit v1.2.3-70-g09d2