]> ruin.nu Git - popboot.git/blobdiff - planner.h
not working
[popboot.git] / planner.h
index 7932eb9251814908502d07b197c198d5bed9f712..bb6836a269d23bf0ff8a85c9451dca6d40143abe 100644 (file)
--- a/planner.h
+++ b/planner.h
@@ -39,13 +39,19 @@ size_t operator()(const std::basic_string<CharT, Traits, Alloc>& s) const {
 class Planner {
        public:
                Planner(std::vector<Action> actions, literals init, literals goal);
+               ~Planner();
+
+               void execute();
 
        protected:
 
                void makePlan(Node* node);
+               void addNode(Node* node);
                
                Node* _start;
                __gnu_cxx::hash_map<std::string,Node*> _addedNodes;
-               __gnu_cxx::hash_map<std::string,Action> _actions;
+               __gnu_cxx::hash_map<std::string,Action*> _actions;
+               literals _init;
+               literals _goal;
 };
 #endif