From 066d3c3659f52a73a0344c3e08989cc73a15164b Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 6 May 2005 14:32:02 +0000 Subject: [PATCH] some changes --- node.cpp | 5 +++++ node.h | 9 +++++++-- planner.h | 4 +++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/node.cpp b/node.cpp index b6347a4..a9cb453 100644 --- a/node.cpp +++ b/node.cpp @@ -1 +1,6 @@ #include "node.h" + +Node::Node(Action action, std::vector children){ + _action = action; + _children = children; +} diff --git a/node.h b/node.h index 27a95c4..db9fb09 100644 --- a/node.h +++ b/node.h @@ -2,12 +2,17 @@ #define __node_h__ #include +#include "action.h" class Node { + Node(Action action, std::vector children); + + addChild(Node& node); + protected: - Action action; - std::vector children; + Action _action; + std::vector _children; }; #endif diff --git a/planner.h b/planner.h index 4846fd9..1b4938b 100644 --- a/planner.h +++ b/planner.h @@ -1,12 +1,14 @@ #ifndef __PLANNER_H__ #define __PLANNER_H__ + #include +#include "node.h" class Planner { public: protected: Node start; - std::hash_map addedNodes; + std::hash_map addedNodes; }; #endif -- 2.39.2