Method | Description | |
---|---|---|
ApplyHorizontalScore ( List |
Applies a score to the horizontal dimension
|
|
ApplyVerticalScore ( List |
Applies a score to the vertical dimension
|
|
Clear ( ) : void |
Clears the score
|
|
InitializeHorizontalScore ( List |
Initializes the horizontal dimension
|
|
InitializeVerticalScore ( List |
Initializes the vertical dimension
|
|
Recalculate ( ) : void |
Forces a recalculation of the total score
|
|
Sink ( int size ) : void |
Adjusts score based on the fact that a ship has sunk
|
public ApplyHorizontalScore ( List |
||
ships | List |
ships alive |
index | int | index within length |
length | int | length |
return | void |
public ApplyVerticalScore ( List |
||
ships | List |
ships alive |
index | int | index within length |
length | int | length |
return | void |
public InitializeHorizontalScore ( List |
||
ships | List |
ships in game |
index | int | index within length |
length | int | length |
return | void |
public InitializeVerticalScore ( List |
||
ships | List |
ships in game |
index | int | index within length |
length | int | length |
return | void |
public Sink ( int size ) : void | ||
size | int | The size of ship that sank |
return | void |