]> 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 db9fb09663fbcff9fa99d797269a84ff1286e630..7bcf3a8c371338375df7d42604ce5d0ddf98ce74 100644 (file)
--- a/node.h
+++ b/node.h
@@ -6,13 +6,16 @@
 
 class Node {
 
-       Node(Action action, std::vector<Node&> children);
-
-       addChild(Node& 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;
+               std::vector<Node*> _children;
+               literals _preconditions;
 };
 
 #endif