C# Class Protocol.GameObjects.Board

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

Méthodes publiques

Свойство Type Description
BoardSize int
Cells ].Figure[
IsNeedPawnPromotion bool

Méthodes publiques

Méthode Description
ApplyMoves ( List moveList ) : void
Board ( ) : System
CheckNotation ( string cell ) : bool
Clone ( ) : Board
DoMove ( string from, string to ) : void
DoMove ( string from, string to, string inWho ) : void
GetCoords ( string cell ) : int>.Tuple
InitialPosition ( ) : void
ReturnPosition ( Figure figure ) : int>.Tuple
ShowBoardToConcole ( ) : void
ShowBoardToWeb ( ) : string>.Dictionary
this ( string cell ) : Figure

Private Methods

Méthode Description
DoPromotion ( string to, string inWho ) : void
FillEmptyCells ( int startX, int endX, int startY, int endY ) : void
IsPromotion ( string to ) : bool
OutputAbroad ( int>.Tuple cell ) : bool

Method Details

ApplyMoves() public méthode

public ApplyMoves ( List moveList ) : void
moveList List
Résultat void

Board() public méthode

public Board ( ) : System
Résultat System

CheckNotation() public static méthode

public static CheckNotation ( string cell ) : bool
cell string
Résultat bool

Clone() public méthode

public Clone ( ) : Board
Résultat Board

DoMove() public méthode

public DoMove ( string from, string to ) : void
from string
to string
Résultat void

DoMove() public méthode

public DoMove ( string from, string to, string inWho ) : void
from string
to string
inWho string
Résultat void

GetCoords() public static méthode

public static GetCoords ( string cell ) : int>.Tuple
cell string
Résultat int>.Tuple

InitialPosition() public méthode

public InitialPosition ( ) : void
Résultat void

ReturnPosition() public méthode

public ReturnPosition ( Figure figure ) : int>.Tuple
figure Figure
Résultat int>.Tuple

ShowBoardToConcole() public méthode

public ShowBoardToConcole ( ) : void
Résultat void

ShowBoardToWeb() public méthode

public ShowBoardToWeb ( ) : string>.Dictionary
Résultat string>.Dictionary

this() public méthode

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

Property Details

BoardSize public_oe static_oe property

public static int BoardSize
Résultat int

Cells public_oe property

public Figure[,] Cells
Résultat ].Figure[

IsNeedPawnPromotion public_oe property

public bool IsNeedPawnPromotion
Résultat bool