summaryrefslogtreecommitdiffstats
path: root/GameField.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'GameField.hpp')
-rw-r--r--GameField.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/GameField.hpp b/GameField.hpp
index 4c6d61d..de5ccd1 100644
--- a/GameField.hpp
+++ b/GameField.hpp
@@ -21,11 +21,15 @@ class GameField {
int who_move;
public:
GameField(int a_cols, int a_rows, int a_lwin);
+ GameField(const GameField &a);
~GameField();
int GetState() { return state; }
+ int GetCols() { return cols; }
+ int GetRows() { return rows; }
bool CanMove(int y, int x);
void Move(int y, int x);
+ void UndoMove(int y, int x);
private:
void UpdateState(int y, int x);