메소드 | 설명 | |
---|---|---|
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!
|