]> ruin.nu Git - popboot.git/blobdiff - node.h
seems to work
[popboot.git] / node.h
diff --git a/node.h b/node.h
index db9fb09663fbcff9fa99d797269a84ff1286e630..31568fc5a6b910ec44a91b7f71c97e0a2d4ab366 100644 (file)
--- a/node.h
+++ b/node.h
@@ -6,13 +6,14 @@
 
 class Node {
 
-       Node(Action action, std::vector<Node&> children);
-
-       addChild(Node& node);
+       public:
+               Node(Action action);
+               void addChild(Node* node);
+               Action action();
 
        protected:
                Action _action;
-               std::vector<Node&> _children;
+               std::vector<Node*> _children;
 };
 
 #endif