/// <summary> /// Wywołuje następne pytanie. /// </summary> private void NextQuestion() { QuestionSelector.AskQuestion(); SetPlanetPosition(); SetPlanetContent(); SetQuestionLabel(); }
/// <summary> /// Występuje gdy gracz najedzie rakietą na dobrą odpowiedź. Wywołuje funkcje przygotowujące następne pytanie. /// </summary> private void CorrectPlanet_MouseEnter(object sender, MouseEventArgs e) { if (rocketCaptured) { QuestionSelector.NextGap(); StatisticsCollector.RecievePoints(true); if (QuestionSelector.IsGapsListEmpty) { SetQuestionLabel(); correctPlanet.Visibility = Visibility.Collapsed; falsePlanet.Visibility = Visibility.Collapsed; wordLabelDelayTimer.Start(); } else { SetQuestionLabel(); SetPlanetPosition(); SetPlanetContent(); } } UpdateScoreLabel(); }