summaryrefslogtreecommitdiffstats
path: root/GameField.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'GameField.hpp')
-rw-r--r--GameField.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/GameField.hpp b/GameField.hpp
index de5ccd1..00a2764 100644
--- a/GameField.hpp
+++ b/GameField.hpp
@@ -12,7 +12,7 @@ enum states {
class GameField {
// optional:
int **field;
- int cols, rows;
+ int rows, cols;
int free_fields;
int win_length;
@@ -24,8 +24,9 @@ public:
GameField(const GameField &a);
~GameField();
int GetState() { return state; }
- int GetCols() { return cols; }
int GetRows() { return rows; }
+ int GetCols() { return cols; }
+ int GetWhoMove() { return who_move; }
bool CanMove(int y, int x);
void Move(int y, int x);