C# Class QuizGameServer.GameRunner

Manage game loop
Exibir arquivo Open project: pebblecode/ChatQuiz Class Usage Examples

Public Methods

Method Description
GameRunner ( IQuestionProvider provider, IChatApi chatapi, int secondsToAnswer ) : System.Threading
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
OnTimeout ( object state ) : void
PoseANewQuestion ( ) : void
_controller_QuestionAnswered ( ) : void

Method Details

GameRunner() public method

public GameRunner ( IQuestionProvider provider, IChatApi chatapi, int secondsToAnswer ) : System.Threading
provider IQuestionProvider
chatapi IChatApi
secondsToAnswer int
return System.Threading

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void