Property | Type | Description | |
---|---|---|---|
_log | StringBuilder |
Method | Description | |
---|---|---|
Cleanup ( GameEndState state ) : void |
Cleans up the game
|
|
Initialize ( int width, int height, List |
Creates a player
|
|
Load ( ) : void |
Loads any saved data about opponents
|
|
Log ( string s ) : void |
Stores a game log You can choose to save or process this in your player implementation |
|
NextTurn ( ) : void |
Advances to next turn
|
|
Save ( GameEndState state ) : void |
Saves any gathered data about opponents
|
public Cleanup ( GameEndState state ) : void | ||
state | GameEndState | win/lose/tie |
return | void |
public Initialize ( int width, int height, List |
||
width | int | width of board |
height | int | height of board |
ships | List |
ships in use this game |
opponent | string | opponent name |
return | void |
public abstract Save ( GameEndState state ) : void | ||
state | GameEndState | |
return | void |