Method | Description | |
---|---|---|
Cleanup ( GameEndState state ) : void |
Cleans up a battleship defense
|
|
IncomingShot ( Position p ) : void |
Register an incoming shot
|
|
Initialize ( |
Initializes a battleship defense
|
|
PlaceShips ( ) : List |
Place ships on board
|
public Cleanup ( GameEndState state ) : void | ||
state | GameEndState | Win/Lose/Draw |
return | void |
public IncomingShot ( Position p ) : void | ||
p | Position | Position shot at |
return | void |
public Initialize ( |
||
player | owning player | |
return | void |