summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-25 13:27:43 -0600
committertom <tom@ground-control>2015-11-25 13:27:43 -0600
commite63a678a8fdde888620b6d5a5059bd0f37141592 (patch)
treef49292feed3b8132496658c1be8414d801a62727 /inc
parent1031174ed7446d22b3f5505ff3a4e84135b88cc3 (diff)
cleaned wander and added heuristic movement that doesnt work
Diffstat (limited to 'inc')
-rw-r--r--inc/Character.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp
index 67fcfd2..f47589a 100644
--- a/inc/Character.hpp
+++ b/inc/Character.hpp
@@ -6,6 +6,8 @@
#include <vector>
#include <string>
#include "Location.hpp"
+#include <cmath>
+#include <iostream>
using namespace std;
class Character
@@ -16,7 +18,8 @@ class Character
void draw(WINDOW * w);
void action(vector <Character> men, vector <Location> impassable);
bool check(Location L, vector <Character> men, vector <Location> impassable);
- void astar(vector <Character> men, vector <Location> impassable);
+ void heuristic(vector <Character> men, vector <Location> impassable);
+ vector <Location> getLocal(Location L, vector <Character> men, vector <Location> impassable);
void wander(vector <Character> men, vector <Location> impassable);
Location getLocation(){return l;}
char getSymbol(){return symbol;}
@@ -29,6 +32,7 @@ class Character
int row;
int col;
int color;
+// vector <Location> open;
};
#endif