reAdded Piece construct
This commit is contained in:
parent
7fe1787a35
commit
ae199f8d2a
|
|
@ -5,7 +5,13 @@ public class Piece {
|
|||
int x;
|
||||
int y;
|
||||
private PieceType type;
|
||||
|
||||
|
||||
public Piece(boolean whitePiece, PieceType type, int x, int y) {
|
||||
this.whitePiece = whitePiece;
|
||||
this.type = type;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue