C# Class ChessDotNet.Pieces.King

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

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
King ( Player owner ) : System
King ( Player owner, bool hasCastlingAbility ) : System

Méthodes protégées

Méthode Description
CanCastle ( Position origin, Position destination, ChessGame game ) : bool

Method Details

CanCastle() protected méthode

protected CanCastle ( Position origin, Position destination, ChessGame game ) : bool
origin Position
destination Position
game ChessGame
Résultat bool

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

King() public méthode

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

King() public méthode

public King ( Player owner, bool hasCastlingAbility ) : System
owner Player
hasCastlingAbility bool
Résultat System