Update on Class Move
This commit is contained in:
parent
acfd893135
commit
5607ae2e57
|
|
@ -1,5 +1,15 @@
|
|||
package backend;
|
||||
|
||||
public class Move {
|
||||
public Piece piece; //The piece to move
|
||||
public int toX; //Target x position
|
||||
public int toY; //Target y position
|
||||
|
||||
public Move(Piece piece, int toX, int toY) {
|
||||
this.piece = piece;
|
||||
this.toX = toX;
|
||||
this.toY = toY;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue