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( int x, int y ) |
| Visual Basic (Declaration) |
|---|
Public Function Fire ( _ x As Integer, _ y As Integer _ ) As State |
| Visual C++ |
|---|
public: State Fire( int x, int y ) |
Parameters
- x
- Type: System..::.Int32
Horizontal position (0 - 9).
- y
- Type: System..::.Int32
Vertical position (0 - 9).
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()()().