piece class with tentative de boolean
This commit is contained in:
parent
8095067fe9
commit
bf4edae24e
|
|
@ -3,11 +3,15 @@ package backend;
|
||||||
public class Piece {
|
public class Piece {
|
||||||
private int x;
|
private int x;
|
||||||
private int y;
|
private int y;
|
||||||
|
private String color;
|
||||||
|
private PieceType type;
|
||||||
|
|
||||||
|
|
||||||
public Piece(int x, int y) {
|
public Piece(int x, int y, String color, PieceType type) {
|
||||||
this.x=x;
|
this.x=x;
|
||||||
this.y=y;
|
this.y=y;
|
||||||
|
this.color=color;
|
||||||
|
this.type=type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getX() {
|
public int getX() {
|
||||||
|
|
@ -19,7 +23,7 @@ public class Piece {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PieceType getType() {
|
public PieceType getType() {
|
||||||
return null;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWhite() {
|
public boolean isWhite() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue