C# Class Game.TicTacToe.TicTacToe

Inheritance: IGame
显示文件 Open project: michalczerwinski/hello_wars

Protected Properties

Property Type Description
TicTacToeViewModel Game.TicTacToe.ViewModels.TicTacToeViewModel

Private Properties

Property Type Description
ClearTheBoard void
ExportBoardState ].BoardFieldSign[
GetResults double>.Dictionary
InitializePlayers void
IsNextMoveValid bool
IsPlayerWon Task
PerformNextMove Task

Public Methods

Method Description
ApplyConfiguration ( string configurationXml ) : void
ChangeDelayTime ( int delayTime ) : void
GetGameRules ( ) : string
GetVisualisationUserControl ( ) : System.Windows.Controls.UserControl
GetVisualisationUserControl ( IConfigurable configuration ) : System.Windows.Controls.UserControl
IsBoardFull ( ) : bool
PerformNextRoundAsync ( ) : Task
Reset ( ) : void
SetPreview ( object boardState ) : void
SetupNewGame ( IEnumerable competitors ) : void
TicTacToe ( ) : System

Private Methods

Method Description
ClearTheBoard ( ) : void
ExportBoardState ( ) : ].BoardFieldSign[
GetResults ( ) : double>.Dictionary
InitializePlayers ( ) : void
IsNextMoveValid ( System.Drawing.Point movePoint ) : bool
IsPlayerWon ( ITicTacToeBot player ) : Task
PerformNextMove ( ITicTacToeBot competitor ) : Task

Method Details

ApplyConfiguration() public method

public ApplyConfiguration ( string configurationXml ) : void
configurationXml string
return void

ChangeDelayTime() public method

public ChangeDelayTime ( int delayTime ) : void
delayTime int
return void

GetGameRules() public method

public GetGameRules ( ) : string
return string

GetVisualisationUserControl() public method

public GetVisualisationUserControl ( ) : System.Windows.Controls.UserControl
return System.Windows.Controls.UserControl

GetVisualisationUserControl() public method

public GetVisualisationUserControl ( IConfigurable configuration ) : System.Windows.Controls.UserControl
configuration IConfigurable
return System.Windows.Controls.UserControl

IsBoardFull() public method

public IsBoardFull ( ) : bool
return bool

PerformNextRoundAsync() public method

public PerformNextRoundAsync ( ) : Task
return Task

Reset() public method

public Reset ( ) : void
return void

SetPreview() public method

public SetPreview ( object boardState ) : void
boardState object
return void

SetupNewGame() public method

public SetupNewGame ( IEnumerable competitors ) : void
competitors IEnumerable
return void

TicTacToe() public method

public TicTacToe ( ) : System
return System

Property Details

TicTacToeViewModel protected_oe property

protected TicTacToeViewModel,Game.TicTacToe.ViewModels TicTacToeViewModel
return Game.TicTacToe.ViewModels.TicTacToeViewModel