C# 클래스 WPFQuiz.Game

파일 보기 프로젝트 열기: nccgroup/44Con2013Game 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
timer_Tick ( object sender, EventArgs e ) : void

메소드 상세

AskQuestion() 공개 메소드

public AskQuestion ( ) : void
리턴 void

Game() 공개 메소드

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

GameOver() 공개 메소드

public GameOver ( ) : void
리턴 void

Get5050() 공개 메소드

public Get5050 ( ) : string[]
리턴 string[]

GetAnswer() 공개 메소드

public GetAnswer ( ) : string
리턴 string

GetTimestamp() 공개 정적인 메소드

public static GetTimestamp ( System.DateTime value ) : String
value System.DateTime
리턴 String

GiveMoreTime() 공개 메소드

public GiveMoreTime ( ) : void
리턴 void

GreenProgressBar() 공개 메소드

public GreenProgressBar ( ) : void
리턴 void

PlayGame() 공개 메소드

How we start asking questions
public PlayGame ( ) : void
리턴 void

QuestionAnswered() 공개 메소드

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

RedProgressBar() 공개 메소드

public RedProgressBar ( ) : void
리턴 void

SaveGame() 공개 메소드

public SaveGame ( ) : void
리턴 void

StopTheClock() 공개 메소드

public StopTheClock ( ) : void
리턴 void

Winrar() 공개 메소드

public Winrar ( ) : void
리턴 void

YellowProgressBar() 공개 메소드

public YellowProgressBar ( ) : void
리턴 void

nextQuestion() 공개 메소드

Get the next question
public nextQuestion ( ) : Question
리턴 Question