7 class MoveHistoryEntry
;
15 void move(int fromX
, int fromY
, int toX
, int toY
);
17 void fill_moves(int x
, int y
, bool *to
);
18 bool can_move(int x
, int y
);
19 void fill_pieces(bool *isEmpty
, char *piece
);
20 void set_player(bool player
);
21 void set_players(Enemy
*a
, Enemy
*b
);
22 bool can_undo() { return _current_move
> 1; }
23 bool can_redo() { return _current_move
<= _move_count
; }
27 void get_last_move(int& fromX
, int &fromY
, int& toX
, int& toY
);
29 void set(MoveHistoryEntry entry
);
30 void set_computer_color(int computerColor
) { _computer_color
= computerColor
; }
31 void set_minimax_depth(int minimaxDepth
);
33 bool get_winner() { return !_player
; }
39 int _move_count
, _current_move
, _computer_color
, _minimax_depth
;
40 MoveHistoryEntry
*_move_history
;