X-Git-Url: https://ruin.nu/git/%3CTMPL_VAR%20NAME=PAGE%3E?a=blobdiff_plain;f=node.h;h=7bcf3a8c371338375df7d42604ce5d0ddf98ce74;hb=13441470b3b895e08b4165e2154665863f1c3b33;hp=3cd3a9eadd050f0de9fa5ab6cc9563386f6eaf01;hpb=498b277372ebab0008b97399d387285b36d88826;p=popboot.git diff --git a/node.h b/node.h index 3cd3a9e..7bcf3a8 100644 --- a/node.h +++ b/node.h @@ -9,12 +9,13 @@ class Node { public: Node(Action action); void addChild(Node* node); - Action action(); - void execute(); + const Action& action() const; + void execute(const literals& effects); protected: Action _action; std::vector _children; + literals _preconditions; }; #endif