메소드 | 설명 | |
---|---|---|
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 ( |
||
populateShotList ( ) : void |
Populate our list of shot coordinates
|
|
roundBeginEvent ( |
||
shoot ( ) : void |
Takes coordinates and shoots at them
|
|
turnStart ( ) : void |
It is our turn, fire!
|