C# Class Game.Figure

Afficher le fichier Open project: porcellus/KomponensAlapuJatek Class Usage Examples

Protected Properties

Свойство Type Description
_board Board
_figureType FigureType
_legalSteps LinkedList
_row int
_white bool

Méthodes publiques

Méthode Description
Clone ( ) : Figure
Figure ( FigureType type, int r, int c, Board b ) : System
calculateLegalSteps ( ) : void
getCol ( ) : int
getFigureType ( ) : FigureType
getLegalSteps ( ) : LinkedList
getLegalSteps ( Board board, Figure figure, bool fromCheckTest ) : LinkedList
getRow ( ) : int
isLegalStep ( Board board, int fromRow, int fromCol, int toRow, int toCol ) : StepType
isLegalStep ( int r, int c ) : StepType
isWhite ( ) : bool
setBoard ( Board board ) : void
setColor ( bool w ) : void
setRC ( int r, int c ) : void

Méthodes protégées

Méthode Description
isEnemy ( Board board, int fr, int fc, int r, int c ) : bool
isEnemy ( int r, int c ) : bool

Method Details

Clone() public méthode

public Clone ( ) : Figure
Résultat Figure

Figure() public méthode

public Figure ( FigureType type, int r, int c, Board b ) : System
type FigureType
r int
c int
b Board
Résultat System

calculateLegalSteps() public méthode

public calculateLegalSteps ( ) : void
Résultat void

getCol() public méthode

public getCol ( ) : int
Résultat int

getFigureType() public méthode

public getFigureType ( ) : FigureType
Résultat FigureType

getLegalSteps() public méthode

public getLegalSteps ( ) : LinkedList
Résultat LinkedList

getLegalSteps() public static méthode

public static getLegalSteps ( Board board, Figure figure, bool fromCheckTest ) : LinkedList
board Board
figure Figure
fromCheckTest bool
Résultat LinkedList

getRow() public méthode

public getRow ( ) : int
Résultat int

isEnemy() protected static méthode

protected static isEnemy ( Board board, int fr, int fc, int r, int c ) : bool
board Board
fr int
fc int
r int
c int
Résultat bool

isEnemy() protected méthode

protected isEnemy ( int r, int c ) : bool
r int
c int
Résultat bool

isLegalStep() public static méthode

public static isLegalStep ( Board board, int fromRow, int fromCol, int toRow, int toCol ) : StepType
board Board
fromRow int
fromCol int
toRow int
toCol int
Résultat StepType

isLegalStep() public méthode

public isLegalStep ( int r, int c ) : StepType
r int
c int
Résultat StepType

isWhite() public méthode

public isWhite ( ) : bool
Résultat bool

setBoard() public méthode

public setBoard ( Board board ) : void
board Board
Résultat void

setColor() public méthode

public setColor ( bool w ) : void
w bool
Résultat void

setRC() public méthode

public setRC ( int r, int c ) : void
r int
c int
Résultat void

Property Details

_board protected_oe property

protected Board,Game _board
Résultat Board

_figureType protected_oe property

protected FigureType _figureType
Résultat FigureType

_legalSteps protected_oe property

protected LinkedList _legalSteps
Résultat LinkedList

_row protected_oe property

protected int _row
Résultat int

_white protected_oe property

protected bool _white
Résultat bool