]> ruin.nu Git - popboot.git/blobdiff - planner.h
some changes
[popboot.git] / planner.h
index 4846fd9166a908b0a0d54b7b592455d24cfce0b5..3faa6fb6918559f0182e45b51fc167c340920db1 100644 (file)
--- a/planner.h
+++ b/planner.h
@@ -1,12 +1,29 @@
 #ifndef __PLANNER_H__
 #define __PLANNER_H__
-#include <hash_map>
+
+#include <ext/hash_map>
+#include <vector>
+#include "action.h"
+
+class Node;
 
 class Planner {
        public:
+               Planner(std::vector<Action> actions, Literals init, Literals goal);
+               ~Planner();
+
+               void execute();
 
        protected:
-               Node start;
-               std::hash_map addedNodes;
+
+               void makePlan(Node* node);
+               void addNode(Node* node);
+               
+               Node* _start;
+               Node* _finish;
+               __gnu_cxx::hash_map<std::string,Node*> _addedNodes;
+               __gnu_cxx::hash_map<std::string,Action> _actions;
+               Literals _init;
+               Literals _goal;
 };
 #endif