From: Michael Andreen Date: Fri, 6 May 2005 14:32:02 +0000 (+0000) Subject: some changes X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=commitdiff_plain;h=066d3c3659f52a73a0344c3e08989cc73a15164b some changes --- 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