1 #include "MoveHistoryEntry.h"
6 MoveHistoryEntry::MoveHistoryEntry()
9 _from_x
= _from_y
= _to_x
= _to_y
= -1;
12 MoveHistoryEntry::MoveHistoryEntry(Board
*board
, int fromX
, int fromY
, int toX
, int toY
)
14 _board
= board
->copy();
21 const MoveHistoryEntry
& MoveHistoryEntry::operator=(const MoveHistoryEntry
& entry
)
23 if(_board
) delete _board
;
24 _board
= entry
._board
;
25 _from_x
= entry
._from_x
;
26 _from_y
= entry
._from_y
;