2019-04-02 17:20:48 +02:00
|
|
|
package piecesEchiquier;
|
|
|
|
|
|
|
|
public class Position {
|
2019-05-03 18:32:02 +02:00
|
|
|
private int x;
|
|
|
|
private int y;
|
2019-04-02 17:20:48 +02:00
|
|
|
|
|
|
|
public Position() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public Position(int x, int y)
|
|
|
|
{
|
2019-05-03 18:32:02 +02:00
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
2019-04-02 17:20:48 +02:00
|
|
|
}
|
|
|
|
|
2019-05-03 18:32:02 +02:00
|
|
|
public int getX() {
|
|
|
|
return x;
|
2019-04-02 17:20:48 +02:00
|
|
|
}
|
|
|
|
|
2019-05-03 18:32:02 +02:00
|
|
|
public void setX(int x) {
|
|
|
|
this.x = x;
|
2019-04-02 17:20:48 +02:00
|
|
|
}
|
|
|
|
|
2019-05-03 18:32:02 +02:00
|
|
|
public int getY() {
|
|
|
|
return y;
|
2019-04-02 17:20:48 +02:00
|
|
|
}
|
|
|
|
|
2019-05-03 18:32:02 +02:00
|
|
|
public void setY(int y) {
|
|
|
|
this.y = y;
|
2019-04-02 17:20:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|