Piece Class |
Namespace: VikingChess.Model
public class Piece
The Piece type exposes the following members.
Name | Description | |
---|---|---|
![]() | Piece |
Blank Constructor.
|
![]() | Piece(Piece) |
Copy Constructor
|
![]() | Piece(EnumsColor, EnumsPieceType) |
Basic Constructor
|
![]() | Piece(EnumsColor, EnumsPieceType, EnumsRank, EnumsFile) |
Main Constructor
|
Name | Description | |
---|---|---|
![]() | canMoveTo |
Returns true or false if the Piece can move to the Square |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | generateLegalMoves |
Returns an List containing all legal Moves for the Piece from its current Square.
|
![]() | getColor |
Returns the color of the Piece |
![]() | getFile |
Returns the file of the Piece on the board.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | getLocation |
Returns a TupleT1, T2 containing the rank and file of the Piece |
![]() | getRank |
Returns the rank of the Piece on the board.
|
![]() | getType |
Returns the type of the Piece |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | setColor |
Sets the color of the Piece.
|
![]() | setFile |
Sets the file of the Piece |
![]() | setLocation |
Sets the rank and file of this Piece |
![]() | setRank |
Sets the rank of the Piece |
![]() | setType |
Sets the type of the Piece.
|
![]() | ToString | ToString override
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | color |
The EnumsColor of the Piece |
![]() | file | |
![]() | legalMoves | |
![]() | rank | |
![]() | type |
The EnumsPieceType of the Piece |