C# Class ChessServer.GameLogic.AttackMap

Afficher le fichier Open project: Beginner7/Command2 Class Usage Examples

Méthodes publiques

Свойство Type Description
Attackers ].List
[

Méthodes publiques

Méthode Description
AttackMap ( List moves, Board forceBoard = null, bool isRecursive = false ) : System
IsContains ( Figure figure ) : bool
MoveVariants ( string cell ) : List
this ( string cell ) : List

Private Methods

Méthode Description
Castling ( List moves, Board board, Figure king, Figure rook ) : void
CastlingFunc ( Board board, Figure king, Figure rook, int rows, char rookX ) : void
East ( Board board, char i, int currentCell, Figure currentFigure ) : void
IsColorFigureAttack ( IEnumerable
figure, Side side ) : bool
KingKnightStep ( Board board, Figure currentFigure, char x, int y ) : void
North ( Board board, char i, int currentCell, Figure currentFigure ) : void
NorthEast ( Board board, char i, int currentCell, Figure currentFigure ) : void
NorthWest ( Board board, char i, int currentCell, Figure currentFigure ) : void
PassedPawn ( IReadOnlyList moves, Board board, Figure pawn ) : void
South ( Board board, char i, int currentCell, Figure currentFigure ) : void
SouthEast ( Board board, char i, int currentCell, Figure currentFigure ) : void
SouthWest ( Board board, char i, int currentCell, Figure currentFigure ) : void
West ( Board board, char i, int currentCell, Figure currentFigure ) : void

Method Details

AttackMap() public méthode

public AttackMap ( List moves, Board forceBoard = null, bool isRecursive = false ) : System
moves List
forceBoard Protocol.GameObjects.Board
isRecursive bool
Résultat System

IsContains() public méthode

public IsContains ( Figure figure ) : bool
figure Protocol.GameObjects.Figure
Résultat bool

MoveVariants() public méthode

public MoveVariants ( string cell ) : List
cell string
Résultat List

this() public méthode

public this ( string cell ) : List
cell string
Résultat List

Property Details

Attackers public_oe property

public List
[,] Attackers
Résultat ].List
[