#include "node.h"
+
+Node::Node(Action action, std::vector<Node&> children){
+ _action = action;
+ _children = children;
+}
#define __node_h__
#include <vector>
+#include "action.h"
class Node {
+ Node(Action action, std::vector<Node&> children);
+
+ addChild(Node& node);
+
protected:
- Action action;
- std::vector<Node*> children;
+ Action _action;
+ std::vector<Node&> _children;
};
#endif
#ifndef __PLANNER_H__
#define __PLANNER_H__
+
#include <hash_map>
+#include "node.h"
class Planner {
public:
protected:
Node start;
- std::hash_map addedNodes;
+ std::hash_map<string,Node*> addedNodes;
};
#endif