]> ruin.nu Git - popboot.git/blobdiff - node.h
initial execution of the plan
[popboot.git] / node.h
diff --git a/node.h b/node.h
index db9fb09663fbcff9fa99d797269a84ff1286e630..3cd3a9eadd050f0de9fa5ab6cc9563386f6eaf01 100644 (file)
--- a/node.h
+++ b/node.h
@@ -6,13 +6,15 @@
 
 class Node {
 
-       Node(Action action, std::vector<Node&> children);
-
-       addChild(Node& node);
+       public:
+               Node(Action action);
+               void addChild(Node* node);
+               Action action();
+               void execute();
 
        protected:
                Action _action;
-               std::vector<Node&> _children;
+               std::vector<Node*> _children;
 };
 
 #endif