31 lines
638 B
Java
31 lines
638 B
Java
package me.eliasbnr.mill;
|
|
|
|
public class Move {
|
|
|
|
private int startField = -1;
|
|
private int endField = -1;
|
|
private int player = -1;
|
|
|
|
public Move(int startField, int endField, int player) {
|
|
this.startField = startField;
|
|
this.endField = endField;
|
|
this.player = player;
|
|
}
|
|
|
|
public int getStartField() {
|
|
return this.startField;
|
|
}
|
|
|
|
public int getEndField() {
|
|
return this.endField;
|
|
}
|
|
|
|
public int getPlayer() {
|
|
return this.player;
|
|
}
|
|
|
|
public String toString() {
|
|
return "Move " + this.startField + " " + this.endField + " " + this.player;
|
|
}
|
|
}
|