From 9f0de11816fdbd0981aeaa3a840e3942fd249eb4 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 22 Nov 2015 15:21:30 -0600 Subject: cleaned up a little and added pausing, the location vector in list.*pp is overkill, should probably just be using the men vector for everything --- inc/Character.hpp | 2 +- inc/Frame.hpp | 14 +++++++------- inc/Screen.hpp | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'inc') diff --git a/inc/Character.hpp b/inc/Character.hpp index 607e8ea..3111154 100644 --- a/inc/Character.hpp +++ b/inc/Character.hpp @@ -12,7 +12,7 @@ class Character { public: Character(char nSymbol, int nColor, Location L); - void move(Location L){l.x=L.x;l.y=L.y;} + void move(Location L){l=L;} void draw(WINDOW * w); Location action(vector occupied); bool check(Location L, vector occupied); diff --git a/inc/Frame.hpp b/inc/Frame.hpp index cc87090..4e4b57f 100644 --- a/inc/Frame.hpp +++ b/inc/Frame.hpp @@ -16,13 +16,13 @@ class Frame Frame(string location, int nRow, int nCol); // main window with seeded map Frame(Frame &super, int rows, int cols, int nRow, int nCol); // viewport ~Frame(); - WINDOW * getWin(); - WINDOW * getSuper(); - bool getHasSuper(); - int getHeight(); - int getWidth(); - int getRow(); - int getCol(); + WINDOW * getWin(){return w;} + WINDOW * getSuper(){return super;} + bool getHasSuper(){return hasSuper;} + int getHeight(){return height;} + int getWidth(){return width;} + int getRow(){return row;} + int getCol(){return col;} void fillWindow(); void refresh(); void move(int nRow, int nCol); diff --git a/inc/Screen.hpp b/inc/Screen.hpp index 505f4e2..2108b97 100644 --- a/inc/Screen.hpp +++ b/inc/Screen.hpp @@ -12,8 +12,8 @@ class Screen Screen(); ~Screen(); void ping(string msg); - int getHeight(); - int getWidth(); + int getHeight(){return height;} + int getWidth(){return width;} private: int height, width; }; -- cgit v1.2.3