]> ruin.nu Git - popboot.git/commitdiff
added node class
authorMichael Andreen <harv@ruin.nu>
Fri, 6 May 2005 12:20:46 +0000 (12:20 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 6 May 2005 12:20:46 +0000 (12:20 +0000)
node.cpp [new file with mode: 0644]
node.h [new file with mode: 0644]
planner.h

diff --git a/node.cpp b/node.cpp
new file mode 100644 (file)
index 0000000..b6347a4
--- /dev/null
+++ b/node.cpp
@@ -0,0 +1 @@
+#include "node.h"
diff --git a/node.h b/node.h
new file mode 100644 (file)
index 0000000..27a95c4
--- /dev/null
+++ b/node.h
@@ -0,0 +1,13 @@
+#ifndef __node_h__
+#define __node_h__
+
+#include <vector>
+
+class Node {
+
+       protected:
+               Action action;
+               std::vector<Node*> children;
+};
+
+#endif
index e2207757d0a1329619adbac00a9e16a66ac19a02..4846fd9166a908b0a0d54b7b592455d24cfce0b5 100644 (file)
--- a/planner.h
+++ b/planner.h
@@ -1,10 +1,12 @@
 #ifndef __PLANNER_H__
 #define __PLANNER_H__
 #ifndef __PLANNER_H__
 #define __PLANNER_H__
+#include <hash_map>
 
 class Planner {
        public:
 
        protected:
                Node start;
 
 class Planner {
        public:
 
        protected:
                Node start;
-               hash_map addedNodes;
+               std::hash_map addedNodes;
+};
 #endif
 #endif