Represents the state of one square in the playing field.
Namespace:
SoftwareArchitects.BattleshipsAssembly: SoftwareArchitects.Battleships (in SoftwareArchitects.Battleships.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public enum State |
| Visual Basic (Declaration) |
|---|
Public Enumeration State |
| Visual C++ |
|---|
public enum class State |
Members
| Member name | Description | |
|---|---|---|
| Unknown |
State is unknown. You have never fired at the corresponding square.
| |
| Water |
No ship is positioned on this square.
| |
| HitShip |
A ship is positioned on this square and you have already hit it.
| |
| SunkShip |
A ship is positioned on this square and you have already sunk it.
| |
| IntactShip |
A ship is positioned on this square and it is still intact. This state is only used by the game engine internally.
A computer player receive state Unknown for a square with an intact ship.
|