fix prb 2
This commit is contained in:
parent
5afdd7a5b3
commit
8afef9e183
|
|
@ -0,0 +1,29 @@
|
|||
package backend;
|
||||
|
||||
public class lastMove {
|
||||
private int fromX, fromY, toX, toY;
|
||||
|
||||
public lastMove(int fromX, int fromY, int toX, int toY) {
|
||||
this.fromX = fromX;
|
||||
this.fromY = fromY;
|
||||
this.toX = toX;
|
||||
this.toY = toY;
|
||||
}
|
||||
|
||||
public int getFromX() {
|
||||
return fromX;
|
||||
}
|
||||
|
||||
public int getFromY() {
|
||||
return fromY;
|
||||
}
|
||||
|
||||
public int getToX() {
|
||||
return toX;
|
||||
}
|
||||
|
||||
public int getToY() {
|
||||
return toY;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue