Square Class |
Namespace: VikingChess.Model
public class Square
The Square type exposes the following members.
Name | Description | |
---|---|---|
![]() | Square |
Blank Constructor
|
![]() | Square(Square) |
Copy Constructor
|
![]() | Square(EnumsRank, EnumsFile, Piece, EnumsSquareType) |
Main Constructor
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | getFile | |
![]() | GetHashCode | (Inherited from Object.) |
![]() | getLocation | |
![]() | getNeighbours |
Returns an Array containing the neighbours of the Square.
|
![]() | getPiece |
Returns the Piece occupying the Square.
|
![]() | getRank | |
![]() | getSquareType |
Returns the EnumsSquareType of Square.
|
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | setFile |
Sets the file of the Square |
![]() | setLocation | |
![]() | setNeighbours |
Sets the neighbour squares of the Square |
![]() | setPiece |
Sets the Piece occupying the Square.
|
![]() | setRank |
Sets the rank of the Square |
![]() | setType |
Sets the type of the Square.
|
![]() | ToString |
ToString method
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | file |
The EnumsFile of the Square |
![]() | neighbours | |
![]() | piece |
The Piece (if any) on the Square |
![]() | rank |
The EnumsRank of the Square |
![]() | type |
The EnumsSquareType of the Square |