|
|
@ -10,7 +10,7 @@ public class Logic { |
|
|
|
|
|
|
|
private Matchfield matchfield; |
|
|
|
private Coordinate lastShot; |
|
|
|
public boolean foundShip = false; |
|
|
|
private boolean foundShip = false; |
|
|
|
|
|
|
|
public Coordinate chooseField() { |
|
|
|
ArrayList<Coordinate> possibleFields = new ArrayList<Coordinate>(); |
|
|
@ -66,4 +66,13 @@ public class Logic { |
|
|
|
System.out.println("Do this"); |
|
|
|
} |
|
|
|
|
|
|
|
public void setFoundShip(boolean b) { |
|
|
|
this.foundShip = b; |
|
|
|
} |
|
|
|
|
|
|
|
public boolean getFoundShip() { |
|
|
|
// TODO Auto-generated method stub |
|
|
|
return this.foundShip; |
|
|
|
} |
|
|
|
|
|
|
|
} |