]> 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 3cd3a9eadd050f0de9fa5ab6cc9563386f6eaf01..0d9cae6fa0229ce432dfb21497452adfa2075e16 100644 (file)
--- a/node.h
+++ b/node.h
@@ -10,11 +10,12 @@ class Node {
                Node(Action action);
                void addChild(Node* node);
                Action action();
-               void execute();
+               void execute(literals effects);
 
        protected:
                Action _action;
                std::vector<Node*> _children;
+               literals _preconditions;
 };
 
 #endif