From 86bf68cc1f2cc81589acc2c35c4875a1230b0267 Mon Sep 17 00:00:00 2001 From: tom Date: Sat, 21 Nov 2015 15:06:26 -0600 Subject: didnt get everything --- inc/Character.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'inc/Character.hpp') diff --git a/inc/Character.hpp b/inc/Character.hpp index 1f948f2..607e8ea 100644 --- a/inc/Character.hpp +++ b/inc/Character.hpp @@ -11,15 +11,13 @@ using namespace std; class Character { public: - Character(char nSymbol, int nColor,int nRow, int nCol); - void move(Location L); + Character(char nSymbol, int nColor, Location L); + void move(Location L){l.x=L.x;l.y=L.y;} void draw(WINDOW * w); - bool action(vector occupied); - bool check(Location L, vector occupied); - int getRow(); - int getCol(); + Location action(vector occupied); + bool check(Location L, vector occupied); Location getLocation(){return l;} - char getSymbol(); + char getSymbol(){return symbol;} private: string order = "wander"; -- cgit v1.2.3