C# Class Queem.Core.ChessBoard.GameProvider

Afficher le fichier Open project: Ribtoks/Queem Class Usage Examples

Protected Properties

Свойство Type Description
allocator MovesArrayAllocator
playerBoards Queem.Core.ChessBoard.PlayerBoard[]

Méthodes publiques

Méthode 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

Méthode Description
AreNoMoves ( PlayerBoard player, PlayerBoard opponent ) : bool

Method Details

CancelLastMove() public méthode

public CancelLastMove ( System.Color color ) : void
color System.Color
Résultat void

FilterMoves() public méthode

public FilterMoves ( FixedArray moves, System.Color playerColor ) : void
moves FixedArray
playerColor System.Color
Résultat void

ForEachFigure() public méthode

public ForEachFigure ( Figure>.Action action ) : void
action Figure>.Action
Résultat void

ForEachFigureReal() public méthode

public ForEachFigureReal ( Action action ) : void
action Action
Résultat void

GameProvider() public méthode

public GameProvider ( MovesArrayAllocator arrayAllocator ) : System
arrayAllocator MovesArrayAllocator
Résultat System

GetTargetSquares() public méthode

public GetTargetSquares ( Square square, System.Color playerColor ) : List
square Square
playerColor System.Color
Résultat List

IsCheckmate() public méthode

public IsCheckmate ( System.Color color ) : bool
color System.Color
Résultat bool

IsStalemate() public méthode

public IsStalemate ( System.Color color ) : bool
color System.Color
Résultat bool

IsUnderCheck() public méthode

public IsUnderCheck ( System.Color color ) : bool
color System.Color
Résultat bool

ProcessMove() public méthode

public ProcessMove ( Move move, System.Color color ) : void
move Queem.Core.Move
color System.Color
Résultat void

PromotePawn() public méthode

public PromotePawn ( System.Color color, Square square, Figure newFigure ) : void
color System.Color
square Square
newFigure Figure
Résultat void

ResetAll() public méthode

public ResetAll ( ) : void
Résultat void

Property Details

allocator protected_oe property

protected MovesArrayAllocator allocator
Résultat MovesArrayAllocator

playerBoards protected_oe property

protected PlayerBoard[],Queem.Core.ChessBoard playerBoards
Résultat Queem.Core.ChessBoard.PlayerBoard[]