X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=node.h;h=3cd3a9eadd050f0de9fa5ab6cc9563386f6eaf01;hb=498b277372ebab0008b97399d387285b36d88826;hp=db9fb09663fbcff9fa99d797269a84ff1286e630;hpb=066d3c3659f52a73a0344c3e08989cc73a15164b;p=popboot.git diff --git a/node.h b/node.h index db9fb09..3cd3a9e 100644 --- a/node.h +++ b/node.h @@ -6,13 +6,15 @@ class Node { - Node(Action action, std::vector children); - - addChild(Node& node); + public: + Node(Action action); + void addChild(Node* node); + Action action(); + void execute(); protected: Action _action; - std::vector _children; + std::vector _children; }; #endif