Board Class |
Namespace: VikingChess.Model
public class Board
The Board type exposes the following members.
Name | Description | |
---|---|---|
![]() | Board(Board) |
Copy Constructor
|
![]() | Board(Int32, String) |
Constructor. Makes a new board object of the specified size |
Name | Description | |
---|---|---|
![]() | countPieces | |
![]() | decrementBlackCount |
Decrements the blackPieces on this board.
|
![]() | decrementWhiteCount |
Decrements the whitePieces on this board.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBoard |
Returns the array containing the board data.
|
![]() | getCurrentPlayer |
gets the current Player for this Board |
![]() | getGameType |
Returns the gameType of this Board |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetPosition |
Returns the index position in the board array corresponding to the passed in rankfile location.
|
![]() | GetSize |
Returns the size of the board array.
|
![]() | GetSquare |
Returns the Square at the specified location
|
![]() | GetType | (Inherited from Object.) |
![]() | InitializeBoard |
Creates new Square objects at the appropriate location in the board array and defines the neighbours
for each square.
|
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | PrintBoard |
Prints a representation of the board |
![]() | setArdRiPieces |
Sets the starting position for the Ard Rí pieces.
|
![]() | setBrandubhPieces |
Sets the starting position for the Brandubh pieces.
|
![]() | setCurrentPlayer |
Sets the current Player for this Board.
|
![]() | setHnefataflPieces |
Sets the starting position for the Hnefatafl pieces.
|
![]() | SetNeighbours | |
![]() | SetPieces |
Sets the position of the Piece objects on the Board depending on the gametype
|
![]() | SetSpecialSquares | |
![]() | SetSquare | |
![]() | setTablutPieces |
Sets the starting position for the Tablut pieces.
|
![]() | setTawlbwrddPieces |
Sets the starting position for the Tawlbwrdd pieces.
|
![]() | ToString |
A String representation of this Board.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | blackPieces |
The number of black pieces on this board.
|
![]() | board |
The array holding the board data
|
![]() | currentPlayer |
The player who moves next
|
![]() | gameType |
The type of Game this is.
|
![]() | size |
The size of the board.
|
![]() | whitePieces |
The number of white pieces on this board.
|