]> ruin.nu Git - popboot.git/blobdiff - node.h
only execute an action when all preconditions are are true
[popboot.git] / node.h
diff --git a/node.h b/node.h
index 31568fc5a6b910ec44a91b7f71c97e0a2d4ab366..0d9cae6fa0229ce432dfb21497452adfa2075e16 100644 (file)
--- a/node.h
+++ b/node.h
@@ -10,10 +10,12 @@ class Node {
                Node(Action action);
                void addChild(Node* node);
                Action action();
+               void execute(literals effects);
 
        protected:
                Action _action;
                std::vector<Node*> _children;
+               literals _preconditions;
 };
 
 #endif