terminada adaptacao para Porto Alegre
[xYpjg3TdSw.git] / migrando / MoveHistoryEntry.h
blob14e485c148ab616e1263556199a159d819b527b1
1 #ifndef __MOVE_HISTORY_ENTRY_H__
2 #define __MOVE_HISTORY_ENTRY_H__
4 class Board;
6 class MoveHistoryEntry
8 public:
9 MoveHistoryEntry();
10 MoveHistoryEntry(Board *board, int fromX, int fromY, int toX, int toY);
11 const MoveHistoryEntry& operator=(const MoveHistoryEntry& entry);
13 Board *board() { return _board; }
14 int from_x() { return _from_x; }
15 int from_y() { return _from_y; }
16 int to_x() { return _to_x; }
17 int to_y() { return _to_y; }
19 private:
20 Board *_board;
21 int _from_x, _from_y, _to_x, _to_y;
25 #endif