Метод | Описание | |
---|---|---|
Initialize ( ) : void |
Hooks required events.
|
Метод | Описание | |
---|---|---|
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 ( |
||
resetShots ( ) : void |
Reset our shot tracking variables for a fresh game
|
|
roundBeginEvent ( |
||
shoot ( ) : void |
Shoots at the next available location
|
|
turnStart ( ) : void |
It is our turn, fire!
|