23 lines
562 B
Java
23 lines
562 B
Java
package backend;
|
|
|
|
public class MoveRecord {
|
|
Piece movedPiece;
|
|
Piece capturedPiece;
|
|
int fromX, fromY, toX, toY;
|
|
int turnNumberAtMove;
|
|
boolean turnWhiteAtMove;
|
|
|
|
public MoveRecord(Piece moved, Piece captured, int fx, int fy, int tx, int ty,
|
|
int turnNum, boolean whiteTurn) {
|
|
this.movedPiece = moved;
|
|
this.capturedPiece = captured;
|
|
this.fromX = fx;
|
|
this.fromY = fy;
|
|
this.toX = tx;
|
|
this.toY = ty;
|
|
this.turnNumberAtMove = turnNum;
|
|
this.turnWhiteAtMove = whiteTurn;
|
|
}
|
|
|
|
}
|