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