C# Class ChessDotNet.Pieces.Rook

Inheritance: Piece
Afficher le fichier Open project: ProgramFOX/Chess.NET Class Usage Examples

Méthodes publiques

Méthode Description
GetFenCharacter ( ) : char
GetValidMoves ( Position from, bool returnIfAny, ChessGame game, bool>.Func gameMoveValidator ) : ReadOnlyCollection
IsValidMove ( Move move, ChessGame game ) : bool
Rook ( Player owner ) : System

Method Details

GetFenCharacter() public méthode

public GetFenCharacter ( ) : char
Résultat char

GetValidMoves() public méthode

public GetValidMoves ( Position from, bool returnIfAny, ChessGame game, bool>.Func gameMoveValidator ) : ReadOnlyCollection
from Position
returnIfAny bool
game ChessGame
gameMoveValidator bool>.Func
Résultat ReadOnlyCollection

IsValidMove() public méthode

public IsValidMove ( Move move, ChessGame game ) : bool
move Move
game ChessGame
Résultat bool

Rook() public méthode

public Rook ( Player owner ) : System
owner Player
Résultat System