C# Class ChessDotNet.Pieces.Rook

Inheritance: Piece
Exibir arquivo Open project: ProgramFOX/Chess.NET Class Usage Examples

Public Methods

Method 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 method

public GetFenCharacter ( ) : char
return char

GetValidMoves() public method

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

IsValidMove() public method

public IsValidMove ( Move move, ChessGame game ) : bool
move Move
game ChessGame
return bool

Rook() public method

public Rook ( Player owner ) : System
owner Player
return System