aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'node/executionnode.h')
-rw-r--r--node/executionnode.h20
1 files changed, 20 insertions, 0 deletions
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