diff options
author | tom <tom@ground-control> | 2015-11-22 19:41:09 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-22 19:41:09 -0600 |
commit | 84d63287c4d052052c9975714bbc253b18d28920 (patch) | |
tree | 5c11d0d8cbffc9d595133caf63878c3d7c3416f3 /inc | |
parent | 9f0de11816fdbd0981aeaa3a840e3942fd249eb4 (diff) |
removed occupied, just used men vector
Diffstat (limited to 'inc')
-rw-r--r-- | inc/Character.hpp | 4 | ||||
-rw-r--r-- | inc/List.hpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp index 3111154..9773762 100644 --- a/inc/Character.hpp +++ b/inc/Character.hpp @@ -14,8 +14,8 @@ class Character Character(char nSymbol, int nColor, Location L); void move(Location L){l=L;} void draw(WINDOW * w); - Location action(vector <Location> occupied); - bool check(Location L, vector <Location> occupied); + Location action(vector <Character> men); + bool check(Location L, vector <Character> men); Location getLocation(){return l;} char getSymbol(){return symbol;} diff --git a/inc/List.hpp b/inc/List.hpp index 931ff8a..ce3f413 100644 --- a/inc/List.hpp +++ b/inc/List.hpp @@ -6,7 +6,6 @@ #include <ncurses.h> #include <ctime> #include <cstdlib> -#include "Location.hpp" using namespace std; class List @@ -17,7 +16,6 @@ class List void action(); private: vector <Character> men; - vector <Location> occupied; }; #endif |