X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=node.h;h=3cd3a9eadd050f0de9fa5ab6cc9563386f6eaf01;hp=27a95c49b6db4048f251845ac599eef381dc5a4d;hb=498b277372ebab0008b97399d387285b36d88826;hpb=50f9b29fed8c97deac825a31c35bb7759abca04f diff --git a/node.h b/node.h index 27a95c4..3cd3a9e 100644 --- a/node.h +++ b/node.h @@ -2,12 +2,19 @@ #define __node_h__ #include +#include "action.h" class Node { + public: + Node(Action action); + void addChild(Node* node); + Action action(); + void execute(); + protected: - Action action; - std::vector children; + Action _action; + std::vector _children; }; #endif