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