C# Class Game.Quarto

Inheritance: AbstractGame
Mostra file Open project: porcellus/KomponensAlapuJatek Class Usage Examples

Public Properties

Property Type Description
activeBoard Board

Public Methods

Method Description
DoStep ( AbstractStep step, PlayerType playerType ) : AbstractStep.Result
GetAvailableSteps ( IState st ) : IEnumerable
GetGameTypeInfo ( ) : string
GetHeuristicValue ( IState state, PlayerType current ) : double
Quarto ( ) : System
RegisterAsPlayer ( AbstractGame &onStep, PlayerType playerType ) : void
SimulateStep ( IState current, AbstractStep step ) : IState
StartGame ( ) : void
initGame ( ) : void
selectPiece ( PlayerType type, Piece select ) : void
updateGameState ( int x, int y ) : void

Private Methods

Method Description
pieceToString ( Piece p ) : string
startGameProcess ( object sender, DoWorkEventArgs e ) : void

Method Details

DoStep() public method

public DoStep ( AbstractStep step, PlayerType playerType ) : AbstractStep.Result
step AbstractStep
playerType PlayerType
return AbstractStep.Result

GetAvailableSteps() public method

public GetAvailableSteps ( IState st ) : IEnumerable
st IState
return IEnumerable

GetGameTypeInfo() public method

public GetGameTypeInfo ( ) : string
return string

GetHeuristicValue() public method

public GetHeuristicValue ( IState state, PlayerType current ) : double
state IState
current PlayerType
return double

Quarto() public method

public Quarto ( ) : System
return System

RegisterAsPlayer() public method

public RegisterAsPlayer ( AbstractGame &onStep, PlayerType playerType ) : void
onStep AbstractGame
playerType PlayerType
return void

SimulateStep() public method

public SimulateStep ( IState current, AbstractStep step ) : IState
current IState
step AbstractStep
return IState

StartGame() public method

public StartGame ( ) : void
return void

initGame() public method

public initGame ( ) : void
return void

selectPiece() public method

public selectPiece ( PlayerType type, Piece select ) : void
type PlayerType
select Piece
return void

updateGameState() public method

public updateGameState ( int x, int y ) : void
x int
y int
return void

Property Details

activeBoard public_oe property

public Board,Game activeBoard
return Board