getX, getY, getType
This commit is contained in:
parent
28357d2303
commit
f48ece0cc5
|
|
@ -17,6 +17,7 @@ public class Main {
|
|||
System.out.println(testBoard.toString());
|
||||
|
||||
|
||||
|
||||
// launches graphical interface :
|
||||
MyInterface mjf = new MyInterface();
|
||||
mjf.setVisible(true);
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ package backend;
|
|||
|
||||
public class Piece {
|
||||
|
||||
public int x;
|
||||
public int y;
|
||||
public PieceType type;
|
||||
private int x;
|
||||
private int y;
|
||||
private PieceType type;
|
||||
|
||||
public int getX() {
|
||||
return x;
|
||||
|
|
@ -19,6 +19,7 @@ public class Piece {
|
|||
}
|
||||
|
||||
public boolean isWhite() {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue