Method | Description | |
---|---|---|
Initialize ( ) : void |
Creates the random generator and hooks required events.
|
Method | Description | |
---|---|---|
CreateShots ( Event ev ) : void | ||
PlaceShips ( Event ev ) : void | ||
QueueShotsPlayer ( Player opponent ) : void |
Populates the shotRemain list with all possible shots against a Player opponent
|
|
RandomCoordinates ( ) : Coordinates |
This method generates a random set of coordinates within the match field boundaries.
|
|
RandomShipOrientation ( ) : ShipOrientation |
This method randomly returns one of two ShipOrientation enums.
|
|
Shoot ( Event ev ) : void |