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