]> ruin.nu Git - popboot.git/blob - planner.cpp
it compiles
[popboot.git] / planner.cpp
1 #include "planner.h"
2 #include "node.h"
3 using namespace std;
4
5 Planner::Planner(std::vector<Action> actions, literals init, literals goal){
6
7         _start = new Node(Action("",init, literals()));
8         Node* finish = new Node(Action("",literals(),goal));
9
10         for(vector<Action>::iterator action = actions.begin(); action != actions.end(); ++action){
11                 literals preconds = action->preconditions();
12                 for (literals::iterator effect = preconds.begin(); effect != preconds.end(); ++effect){
13                         _actions[*effect] = *action;
14                 }
15         }
16 }
17
18
19 void Planner::makePlan(Node* node){
20 }