diff options
| author | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 | 
|---|---|---|
| committer | tom <tom@ground-control> | 2015-11-25 16:05:41 -0600 | 
| commit | 260589abf40d3a0d02c5c472467858cc4c151e6a (patch) | |
| tree | 86a96732d89a3a373aa846617fb0ea7f4a334800 /inc | |
| parent | 0fb714b1a642361eebadf7d74333c20f861354d2 (diff) | |
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/Character.hpp | 4 | ||||
| -rw-r--r-- | inc/List.hpp | 1 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp index 3c88ab2..f519c3f 100644 --- a/inc/Character.hpp +++ b/inc/Character.hpp @@ -23,9 +23,9 @@ class Character          void wander(vector <Character> men, vector <Location> impassable);          Location getLocation(){return l;}          char getSymbol(){return symbol;} - +        void giveOrder(Location L){d = L;order="move";}      private: -        string order = "move"; +        string order = "wander";          Location l; // current location          Location d; // destination          char symbol; diff --git a/inc/List.hpp b/inc/List.hpp index 447903b..56d25e9 100644 --- a/inc/List.hpp +++ b/inc/List.hpp @@ -14,6 +14,7 @@ class List          List(vector <Location> i);          void draw(WINDOW * w);          void action(); +        void order(Location l);      private:          vector <Character> men;          vector <Location> impassable;  | 
