C# 클래스 Queem.Core.ChessBoard.PlayerBoard

파일 보기 프로젝트 열기: Ribtoks/Queem 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
KnightBishopRookQueen Figure[]

보호된 프로퍼티들

프로퍼티 타입 설명
allFigures ulong
allocator MovesArrayAllocator
attacksGenerators Queem.Core.AttacksGenerators.AttacksGenerator[]
bitboards Queem.Core.BitBoards.BitBoard[]
color System.Color
figures Figure[]
moveGenerators Queem.Core.MovesGenerators.MovesGenerator[]
position PlayerPosition

공개 메소드들

메소드 설명
AddFigure ( Square sq, Figure figure ) : void
CancelMove ( int sqFrom, int sqTo ) : void
GetAllFigures ( ) : ulong
GetAllFiguresCount ( ) : int
GetBoardProperty ( Figure figure ) : int
GetKingMoves ( PlayerBoard opponent, ulong mask, MovesMask movesMask ) : List
GetMoves ( PlayerBoard opponent, Move lastMove, MovesMask movesMask ) : FixedArray
IsUnderAttack ( Square sq, PlayerBoard opponentBoard ) : bool
IsUnderCheck ( PlayerBoard opponent ) : bool
PlayerBoard ( PlayerPosition playerPosition, System.Color playerColor, MovesArrayAllocator arrayAllocator ) : System
ProcessMove ( Move move, Figure figure ) : void
RefreshAllFiguresBoard ( ) : void
RemoveFigure ( Square sq, Figure figure ) : void
ResetAll ( ) : void
SetProperty ( Figure figure, int property ) : void

보호된 메소드들

메소드 설명
AddPromotionMoves ( Move innerArray, int index, Figure destinationFigure ) : void
CreateAttacksGenerators ( ) : void
CreateBitBoards ( ) : void
CreateFiguresArray ( ) : void
CreateMovesGenerators ( ) : void
FillBitBoards ( ) : void
FillFiguresArray ( ) : void
GetBishopsQueens ( ) : ulong
GetPawnAttacks ( ) : ulong
GetRooksQueens ( ) : ulong

메소드 상세

AddFigure() 공개 메소드

public AddFigure ( Square sq, Figure figure ) : void
sq Square
figure Figure
리턴 void

AddPromotionMoves() 보호된 메소드

protected AddPromotionMoves ( Move innerArray, int index, Figure destinationFigure ) : void
innerArray Queem.Core.Move
index int
destinationFigure Figure
리턴 void

CancelMove() 공개 메소드

public CancelMove ( int sqFrom, int sqTo ) : void
sqFrom int
sqTo int
리턴 void

CreateAttacksGenerators() 보호된 메소드

protected CreateAttacksGenerators ( ) : void
리턴 void

CreateBitBoards() 보호된 메소드

protected CreateBitBoards ( ) : void
리턴 void

CreateFiguresArray() 보호된 메소드

protected CreateFiguresArray ( ) : void
리턴 void

CreateMovesGenerators() 보호된 메소드

protected CreateMovesGenerators ( ) : void
리턴 void

FillBitBoards() 보호된 메소드

protected FillBitBoards ( ) : void
리턴 void

FillFiguresArray() 보호된 메소드

protected FillFiguresArray ( ) : void
리턴 void

GetAllFigures() 공개 메소드

public GetAllFigures ( ) : ulong
리턴 ulong

GetAllFiguresCount() 공개 메소드

public GetAllFiguresCount ( ) : int
리턴 int

GetBishopsQueens() 보호된 메소드

protected GetBishopsQueens ( ) : ulong
리턴 ulong

GetBoardProperty() 공개 메소드

public GetBoardProperty ( Figure figure ) : int
figure Figure
리턴 int

GetKingMoves() 공개 메소드

public GetKingMoves ( PlayerBoard opponent, ulong mask, MovesMask movesMask ) : List
opponent PlayerBoard
mask ulong
movesMask MovesMask
리턴 List

GetMoves() 공개 메소드

public GetMoves ( PlayerBoard opponent, Move lastMove, MovesMask movesMask ) : FixedArray
opponent PlayerBoard
lastMove Queem.Core.Move
movesMask MovesMask
리턴 FixedArray

GetPawnAttacks() 보호된 메소드

protected GetPawnAttacks ( ) : ulong
리턴 ulong

GetRooksQueens() 보호된 메소드

protected GetRooksQueens ( ) : ulong
리턴 ulong

IsUnderAttack() 공개 메소드

public IsUnderAttack ( Square sq, PlayerBoard opponentBoard ) : bool
sq Square
opponentBoard PlayerBoard
리턴 bool

IsUnderCheck() 공개 메소드

public IsUnderCheck ( PlayerBoard opponent ) : bool
opponent PlayerBoard
리턴 bool

PlayerBoard() 공개 메소드

public PlayerBoard ( PlayerPosition playerPosition, System.Color playerColor, MovesArrayAllocator arrayAllocator ) : System
playerPosition PlayerPosition
playerColor System.Color
arrayAllocator MovesArrayAllocator
리턴 System

ProcessMove() 공개 메소드

public ProcessMove ( Move move, Figure figure ) : void
move Queem.Core.Move
figure Figure
리턴 void

RefreshAllFiguresBoard() 공개 메소드

public RefreshAllFiguresBoard ( ) : void
리턴 void

RemoveFigure() 공개 메소드

public RemoveFigure ( Square sq, Figure figure ) : void
sq Square
figure Figure
리턴 void

ResetAll() 공개 메소드

public ResetAll ( ) : void
리턴 void

SetProperty() 공개 메소드

public SetProperty ( Figure figure, int property ) : void
figure Figure
property int
리턴 void

프로퍼티 상세

KnightBishopRookQueen 공개적으로 정적으로 프로퍼티

public static Figure[] KnightBishopRookQueen
리턴 Figure[]

allFigures 보호되어 있는 프로퍼티

protected ulong allFigures
리턴 ulong

allocator 보호되어 있는 프로퍼티

protected MovesArrayAllocator allocator
리턴 MovesArrayAllocator

attacksGenerators 보호되어 있는 프로퍼티

protected AttacksGenerator[],Queem.Core.AttacksGenerators attacksGenerators
리턴 Queem.Core.AttacksGenerators.AttacksGenerator[]

bitboards 보호되어 있는 프로퍼티

protected BitBoard[],Queem.Core.BitBoards bitboards
리턴 Queem.Core.BitBoards.BitBoard[]

color 보호되어 있는 프로퍼티

protected Color,System color
리턴 System.Color

figures 보호되어 있는 프로퍼티

protected Figure[] figures
리턴 Figure[]

moveGenerators 보호되어 있는 프로퍼티

protected MovesGenerator[],Queem.Core.MovesGenerators moveGenerators
리턴 Queem.Core.MovesGenerators.MovesGenerator[]

position 보호되어 있는 프로퍼티

protected PlayerPosition position
리턴 PlayerPosition