C# 클래스 ChessDotNet.Pieces.King

상속: Piece
파일 보기 프로젝트 열기: ProgramFOX/Chess.NET

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
CanCastle ( Position origin, Position destination, ChessGame game ) : bool

메소드 상세

CanCastle() 보호된 메소드

protected CanCastle ( Position origin, Position destination, ChessGame game ) : bool
origin Position
destination Position
game ChessGame
리턴 bool

GetFenCharacter() 공개 메소드

public GetFenCharacter ( ) : char
리턴 char

GetValidMoves() 공개 메소드

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

IsValidMove() 공개 메소드

public IsValidMove ( Move move, ChessGame game ) : bool
move Move
game ChessGame
리턴 bool

King() 공개 메소드

public King ( Player owner ) : System
owner Player
리턴 System

King() 공개 메소드

public King ( Player owner, bool hasCastlingAbility ) : System
owner Player
hasCastlingAbility bool
리턴 System