C# Class Queem.Core.ChessBoard.GameProvider

ファイルを表示 Open project: Ribtoks/Queem Class Usage Examples

Protected Properties

Property Type Description
allocator MovesArrayAllocator
playerBoards Queem.Core.ChessBoard.PlayerBoard[]

Public Methods

Method Description
CancelLastMove ( System.Color color ) : void
FilterMoves ( FixedArray moves, System.Color playerColor ) : void
ForEachFigure ( Figure>.Action action ) : void
ForEachFigureReal ( Action action ) : void
GameProvider ( MovesArrayAllocator arrayAllocator ) : System
GetTargetSquares ( Square square, System.Color playerColor ) : List
IsCheckmate ( System.Color color ) : bool
IsStalemate ( System.Color color ) : bool
IsUnderCheck ( System.Color color ) : bool
ProcessMove ( Move move, System.Color color ) : void
PromotePawn ( System.Color color, Square square, Figure newFigure ) : void
ResetAll ( ) : void

Private Methods

Method Description
AreNoMoves ( PlayerBoard player, PlayerBoard opponent ) : bool

Method Details

CancelLastMove() public method

public CancelLastMove ( System.Color color ) : void
color System.Color
return void

FilterMoves() public method

public FilterMoves ( FixedArray moves, System.Color playerColor ) : void
moves FixedArray
playerColor System.Color
return void

ForEachFigure() public method

public ForEachFigure ( Figure>.Action action ) : void
action Figure>.Action
return void

ForEachFigureReal() public method

public ForEachFigureReal ( Action action ) : void
action Action
return void

GameProvider() public method

public GameProvider ( MovesArrayAllocator arrayAllocator ) : System
arrayAllocator MovesArrayAllocator
return System

GetTargetSquares() public method

public GetTargetSquares ( Square square, System.Color playerColor ) : List
square Square
playerColor System.Color
return List

IsCheckmate() public method

public IsCheckmate ( System.Color color ) : bool
color System.Color
return bool

IsStalemate() public method

public IsStalemate ( System.Color color ) : bool
color System.Color
return bool

IsUnderCheck() public method

public IsUnderCheck ( System.Color color ) : bool
color System.Color
return bool

ProcessMove() public method

public ProcessMove ( Move move, System.Color color ) : void
move Queem.Core.Move
color System.Color
return void

PromotePawn() public method

public PromotePawn ( System.Color color, Square square, Figure newFigure ) : void
color System.Color
square Square
newFigure Figure
return void

ResetAll() public method

public ResetAll ( ) : void
return void

Property Details

allocator protected_oe property

protected MovesArrayAllocator allocator
return MovesArrayAllocator

playerBoards protected_oe property

protected PlayerBoard[],Queem.Core.ChessBoard playerBoards
return Queem.Core.ChessBoard.PlayerBoard[]