Gets the state of one square in the playing field.

Namespace:  SoftwareArchitects.Battleships
Assembly:  SoftwareArchitects.Battleships (in SoftwareArchitects.Battleships.dll)
Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public State this[
	int x,
	int y
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	x As Integer, _
	y As Integer _
) As State
Visual C++
public:
property State default[int x, int y] {
	State get (int x, int y);
}

Parameters

x
Type: System..::.Int32
Horizontal position (0 - 9).
y
Type: System..::.Int32
Vertical position (0 - 9).

Return Value

State of the given square.

See Also