|
@ -8,6 +8,7 @@ import de.tims.fleetstorm.matchfield.Matchfield; |
|
|
|
|
|
|
|
|
public class Logic { |
|
|
public class Logic { |
|
|
|
|
|
|
|
|
|
|
|
private Matchfield matchfield; |
|
|
private Coordinate lastShot; |
|
|
private Coordinate lastShot; |
|
|
|
|
|
|
|
|
public Coordinate chooseField(Matchfield matchfield) { |
|
|
public Coordinate chooseField(Matchfield matchfield) { |
|
@ -46,4 +47,13 @@ public class Logic { |
|
|
return lastShot; |
|
|
return lastShot; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setMatchfield(Matchfield matchfield) { |
|
|
|
|
|
this.matchfield = matchfield; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Matchfield getMatchfield() { |
|
|
|
|
|
return matchfield; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |