]> ruin.nu Git - popboot.git/blobdiff - node.h
small change
[popboot.git] / node.h
diff --git a/node.h b/node.h
index 55e34e6d4675fc644e7a8070abfe929efc0a0844..b49d0109ee042005010a2bae4eb455395db8b57c 100644 (file)
--- a/node.h
+++ b/node.h
@@ -2,17 +2,38 @@
 #define __node_h__
 
 #include <vector>
+#include <utility>
 #include "action.h"
 
 class Node {
 
        public:
-               Node(Action action);
+               Node(const Action& action);
+               Node();
+               Node(const Node& node);
+               virtual ~Node(){}
                void addChild(Node* node);
+               const Action& action() const;
+               void execute(const Literals& effects);
+               bool executed() const;
+               const Literals& effects() const;
 
        protected:
                Action _action;
                std::vector<Node*> _children;
+               Preconditions _preconditions;
+               bool _executed;
+               Literals _effects;
+};
+
+class StartNode :public Node {
+       public:
+               StartNode(const Literals& init);
+};
+
+class EndNode :public Node {
+       public:
+               EndNode(const Literals& goal);
 };
 
 #endif