Fires at a square on the playing field.
Namespace:
SoftwareArchitects.BattleshipsAssembly: SoftwareArchitects.Battleships (in SoftwareArchitects.Battleships.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public State Fire( Coordinates coordinates ) |
| Visual Basic (Declaration) |
|---|
Public Function Fire ( _ coordinates As Coordinates _ ) As State |
| Visual C++ |
|---|
public: State Fire( Coordinates^ coordinates ) |
Parameters
- coordinates
- Type: SoftwareArchitects.Battleships..::.Coordinates
Coordinates of the square.
Return Value
Returns the state of the hit field.
Remarks
You must not call this method more than once during a single call to Move()()().