C# Class ChessServer.GameLogic.AttackMap

Show file Open project: Beginner7/Command2 Class Usage Examples

Public Properties

Property Type Description
Attackers ].List
[

Public Methods

Method 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

Method 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 method

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

IsContains() public method

public IsContains ( Figure figure ) : bool
figure Protocol.GameObjects.Figure
return bool

MoveVariants() public method

public MoveVariants ( string cell ) : List
cell string
return List

this() public method

public this ( string cell ) : List
cell string
return List

Property Details

Attackers public property

public List
[,] Attackers
return ].List
[