summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/Character.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp
index a1fc7b7..67fcfd2 100644
--- a/inc/Character.hpp
+++ b/inc/Character.hpp
@@ -16,12 +16,15 @@ 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 wander(vector <Character> men, vector <Location> impassable);
Location getLocation(){return l;}
char getSymbol(){return symbol;}
private:
string order = "wander";
- Location l;
+ Location l; // current location
+ Location d; // destination
char symbol;
int row;
int col;