Method | Description | |
---|---|---|
Initialize ( ) : void |
Hooks required events.
|
Method | Description | |
---|---|---|
matchBeginEvent ( |
||
newMatch ( ) : void |
A new match has begun
|
|
newRound ( ) : void |
A new round has begun, place our ships and prepare to fire!
|
|
placeShips ( ) : void |
Place ships in specific locations
|
|
playerTurnBeginEvent ( |
||
populateShotList ( ) : void |
Populate our list of shot coordinates
|
|
roundBeginEvent ( |
||
shoot ( ) : void |
Takes coordinates and shoots at them
|
|
turnStart ( ) : void |
It is our turn, fire!
|