/// <summary> /// Initialize the view for a new quizz /// </summary> private void UpdateViewWithQuizz(Quizz q) { // Set timer in a thread var thread = new Thread(SetGameTimer as ThreadStart); thread.Start(); // Display selected mode and difficulty LabelMode.Text = mQuizz.Mode.ToString() + " - " + mQuizz.Difficulty; // Display lives // if (q.Mode == GameMode.SURVIVAL) // { // livesImage.Hidden = false; // } // else // { // livesImage.Hidden = true; // } // Make sure we're not pausing if (mPauseViewController != null) { mPauseViewController.View.RemoveFromSuperview(); } }
/// <summary> /// Initialize a new quizz game /// </summary> public void InitializeQuizz(GameMode mode, GameDifficulty diff, Filter f) { var appDelegate = (AppDelegate) UIApplication.SharedApplication.Delegate; // Prepare a quizz mQuizz = new Quizz(); mQuizz.Initialize(mode, diff, appDelegate.Configuration, f); // Consume one credit PlayerCache.Instance.UseCredit(); }
public void SetQuizz(Quizz q) { this._quizz = q; }