C# Class Game.Quarto

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

Méthodes publiques

Свойство Type Description
activeBoard Board

Méthodes publiques

Méthode 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

Méthode Description
pieceToString ( Piece p ) : string
startGameProcess ( object sender, DoWorkEventArgs e ) : void

Method Details

DoStep() public méthode

public DoStep ( AbstractStep step, PlayerType playerType ) : AbstractStep.Result
step AbstractStep
playerType PlayerType
Résultat AbstractStep.Result

GetAvailableSteps() public méthode

public GetAvailableSteps ( IState st ) : IEnumerable
st IState
Résultat IEnumerable

GetGameTypeInfo() public méthode

public GetGameTypeInfo ( ) : string
Résultat string

GetHeuristicValue() public méthode

public GetHeuristicValue ( IState state, PlayerType current ) : double
state IState
current PlayerType
Résultat double

Quarto() public méthode

public Quarto ( ) : System
Résultat System

RegisterAsPlayer() public méthode

public RegisterAsPlayer ( AbstractGame &onStep, PlayerType playerType ) : void
onStep AbstractGame
playerType PlayerType
Résultat void

SimulateStep() public méthode

public SimulateStep ( IState current, AbstractStep step ) : IState
current IState
step AbstractStep
Résultat IState

StartGame() public méthode

public StartGame ( ) : void
Résultat void

initGame() public méthode

public initGame ( ) : void
Résultat void

selectPiece() public méthode

public selectPiece ( PlayerType type, Piece select ) : void
type PlayerType
select Piece
Résultat void

updateGameState() public méthode

public updateGameState ( int x, int y ) : void
x int
y int
Résultat void

Property Details

activeBoard public_oe property

public Board,Game activeBoard
Résultat Board