C# Class Game.Board

Inheritance: IState
Mostrar archivo Open project: porcellus/KomponensAlapuJatek Class Usage Examples

Protected Properties

Property Type Description
data ].Figure[
dimension int[]
heuristic ChessHeuristic
symIndex int
symList String

Public Methods

Method Description
Board ( ) : System
Board ( Board oBoard ) : System
Clone ( ) : Board
Step ( int fromRow, int fromCol, int toRow, int toCol ) : void
UpdateActivePieces ( Piece list, Piece p ) : void
UpdateCurrentPlayer ( ) : void
addFigure ( Figure fig ) : void
checkIsEmpty ( int x, int y ) : bool
checkIsFull ( ) : bool
checkTest ( bool white ) : bool
checkWinningState ( ) : void
checkmateTest ( bool white ) : bool
getData ( ) : ].Figure[
getDimension ( ) : int[]
getFigureAt ( int row, int col ) : Figure
getItemByRC ( int row, int col ) : Figure
getNextSym ( ) : char
getValue ( ) : int
insertPiece ( int x, int y, Piece iPiece ) : void
setContent ( String fig, String col ) : void
setCurrentPlayer ( PlayerType cPlayer ) : void
setDimension ( int dim ) : void
setHeuristic ( ChessHeuristic heur ) : void

Protected Methods

Method Description
Index ( int row, int col ) : int

Private Methods

Method Description
Equals ( Board b1, Board b2 ) : bool
win ( int valami ) : System.Boolean

Method Details

Board() public method

public Board ( ) : System
return System

Board() public method

public Board ( Board oBoard ) : System
oBoard Board
return System

Clone() public method

public Clone ( ) : Board
return Board

Index() protected method

protected Index ( int row, int col ) : int
row int
col int
return int

Step() public method

public Step ( int fromRow, int fromCol, int toRow, int toCol ) : void
fromRow int
fromCol int
toRow int
toCol int
return void

UpdateActivePieces() public method

public UpdateActivePieces ( Piece list, Piece p ) : void
list Piece
p Piece
return void

UpdateCurrentPlayer() public method

public UpdateCurrentPlayer ( ) : void
return void

addFigure() public method

public addFigure ( Figure fig ) : void
fig Figure
return void

checkIsEmpty() public method

public checkIsEmpty ( int x, int y ) : bool
x int
y int
return bool

checkIsFull() public method

public checkIsFull ( ) : bool
return bool

checkTest() public method

public checkTest ( bool white ) : bool
white bool
return bool

checkWinningState() public method

public checkWinningState ( ) : void
return void

checkmateTest() public method

public checkmateTest ( bool white ) : bool
white bool
return bool

getData() public method

public getData ( ) : ].Figure[
return ].Figure[

getDimension() public method

public getDimension ( ) : int[]
return int[]

getFigureAt() public method

public getFigureAt ( int row, int col ) : Figure
row int
col int
return Figure

getItemByRC() public method

public getItemByRC ( int row, int col ) : Figure
row int
col int
return Figure

getNextSym() public method

public getNextSym ( ) : char
return char

getValue() public method

public getValue ( ) : int
return int

insertPiece() public method

public insertPiece ( int x, int y, Piece iPiece ) : void
x int
y int
iPiece Piece
return void

setContent() public method

public setContent ( String fig, String col ) : void
fig String
col String
return void

setCurrentPlayer() public method

public setCurrentPlayer ( PlayerType cPlayer ) : void
cPlayer PlayerType
return void

setDimension() public method

public setDimension ( int dim ) : void
dim int
return void

setHeuristic() public method

public setHeuristic ( ChessHeuristic heur ) : void
heur ChessHeuristic
return void

Property Details

data protected_oe property

protected Figure[,] data
return ].Figure[

dimension protected_oe property

protected int[] dimension
return int[]

heuristic protected_oe property

protected ChessHeuristic heuristic
return ChessHeuristic

symIndex protected_oe property

protected int symIndex
return int

symList protected_oe property

protected String symList
return String