summaryrefslogtreecommitdiffstats
path: root/grid.h
diff options
context:
space:
mode:
Diffstat (limited to 'grid.h')
-rw-r--r--grid.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/grid.h b/grid.h
index 23294f7..d2a066b 100644
--- a/grid.h
+++ b/grid.h
@@ -15,30 +15,31 @@ using std::vector;
class Grid
{
private:
- int rows;
- int cols;
- int numOfMoves;
- int lastMoved;
- int lastMoveDir;
- vector<Piece> pieces;
- vector<string> moves;
- string *board;
+ int rows;
+ int cols;
+ int numOfMoves;
+ int lastMoved;
+ int lastMoveDir;
+ vector<Piece> pieces;
+ vector<string> moves;
+ string *board;
public:
Grid(void);
/* we do not need a copy constructor since the deault shallow copy will be fine */
//Grid(const Grid &);
- int *getRows(void);
- int *getCols(void);
- int *getNumOfMoves(void);
- vector<Piece> *getPieces(void);
+ int *getRows(void);
+ int *getCols(void);
+ int *getNumOfMoves(void);
+ vector<Piece> *getPieces(void);
- void setRows(int);
- void setCols(int);
- void addMove(string);
+ void setRows(int);
+ void setCols(int);
+ void addMove(string);
- void markPiecesPos(void);
+ void markPiecesPos(void);
};
#endif
+