X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=node.h;h=0d9cae6fa0229ce432dfb21497452adfa2075e16;hb=09f6dfa65b66103c27dc831271d961de9ab0109e;hp=db9fb09663fbcff9fa99d797269a84ff1286e630;hpb=066d3c3659f52a73a0344c3e08989cc73a15164b;p=popboot.git diff --git a/node.h b/node.h index db9fb09..0d9cae6 100644 --- a/node.h +++ b/node.h @@ -6,13 +6,16 @@ class Node { - Node(Action action, std::vector children); - - addChild(Node& node); + public: + Node(Action action); + void addChild(Node* node); + Action action(); + void execute(literals effects); protected: Action _action; - std::vector _children; + std::vector _children; + literals _preconditions; }; #endif