C# Class WPFQuiz.Game

Mostrar archivo Open project: nccgroup/44Con2013Game Class Usage Examples

Public Methods

Method Description
AskQuestion ( ) : void
Game ( QuestionCollection qCollectionIn, MainWindow myMain, Random myPRNG ) : System

Parent object of the game

GameOver ( ) : void

Get5050 ( ) : string[]
GetAnswer ( ) : string
GetTimestamp ( System.DateTime value ) : String
GiveMoreTime ( ) : void
GreenProgressBar ( ) : void
PlayGame ( ) : void

How we start asking questions

QuestionAnswered ( string strButton, System.Windows.Controls.Button btnPushed ) : void

Event interface for when buttons are pushed

RedProgressBar ( ) : void
SaveGame ( ) : void
StopTheClock ( ) : void
Winrar ( ) : void
YellowProgressBar ( ) : void
nextQuestion ( ) : Question

Get the next question

Private Methods

Method Description
timer_Tick ( object sender, EventArgs e ) : void

Method Details

AskQuestion() public method

public AskQuestion ( ) : void
return void

Game() public method

Parent object of the game
public Game ( QuestionCollection qCollectionIn, MainWindow myMain, Random myPRNG ) : System
qCollectionIn QuestionCollection
myMain MainWindow
myPRNG System.Random
return System

GameOver() public method

public GameOver ( ) : void
return void

Get5050() public method

public Get5050 ( ) : string[]
return string[]

GetAnswer() public method

public GetAnswer ( ) : string
return string

GetTimestamp() public static method

public static GetTimestamp ( System.DateTime value ) : String
value System.DateTime
return String

GiveMoreTime() public method

public GiveMoreTime ( ) : void
return void

GreenProgressBar() public method

public GreenProgressBar ( ) : void
return void

PlayGame() public method

How we start asking questions
public PlayGame ( ) : void
return void

QuestionAnswered() public method

Event interface for when buttons are pushed
public QuestionAnswered ( string strButton, System.Windows.Controls.Button btnPushed ) : void
strButton string
btnPushed System.Windows.Controls.Button
return void

RedProgressBar() public method

public RedProgressBar ( ) : void
return void

SaveGame() public method

public SaveGame ( ) : void
return void

StopTheClock() public method

public StopTheClock ( ) : void
return void

Winrar() public method

public Winrar ( ) : void
return void

YellowProgressBar() public method

public YellowProgressBar ( ) : void
return void

nextQuestion() public method

Get the next question
public nextQuestion ( ) : Question
return Question