Exemple #1
0
 // Wait for keyboard input
 public void updateShowingAnswer()
 {
     updatePlayers();
     showAnswerControl.update();
     if (showAnswerControl.IsComplete)
     {
         unreadyPlayers();
         currentQuestion++;
         if (currentQuestion < questionCount)
         {
             gameState             = GameState.prompting_for_ready;
             promptForReadyControl = new PromptForReadyControl(questions[currentQuestion]);
             QuizBorder.Child      = promptForReadyControl;
         }
         else
         {
             gameState         = GameState.victoring_screen;
             showVictorControl = new ShowVictorControl();
             QuizBorder.Child  = showVictorControl;
         }
     }
     else
     {
     }
 }
Exemple #2
0
 public void jumpToFinalQuestion()
 {
     currentQuestion = questionCount - 1;
     unreadyPlayers();
     gameState             = GameState.prompting_for_ready;
     promptForReadyControl = new PromptForReadyControl(questions[currentQuestion]);
     QuizBorder.Child      = promptForReadyControl;
 }
Exemple #3
0
 // Wait for keyboard input or maybe all players ready to move to the first question
 public void updateSplashingTitle()
 {
     updatePlayers();
     titleSplashControl.update();
     if (titleSplashControl.IsComplete)
     {
         unreadyPlayers();
         gameState             = GameState.prompting_for_ready;
         promptForReadyControl = new PromptForReadyControl(questions[currentQuestion]);
         QuizBorder.Child      = promptForReadyControl;
     }
     else
     {
     }
 }