]> ruin.nu Git - popboot.git/blobdiff - node.h
Might be good to have a destructor too
[popboot.git] / node.h
diff --git a/node.h b/node.h
index 55e34e6d4675fc644e7a8070abfe929efc0a0844..7bcf3a8c371338375df7d42604ce5d0ddf98ce74 100644 (file)
--- a/node.h
+++ b/node.h
@@ -9,10 +9,13 @@ class Node {
        public:
                Node(Action action);
                void addChild(Node* node);
+               const Action& action() const;
+               void execute(const literals& effects);
 
        protected:
                Action _action;
                std::vector<Node*> _children;
+               literals _preconditions;
 };
 
 #endif