Exemple #1
0
 public void getPrevQuest()
 {
     currentQuestion = this.prevQuestions.Pop();
     if (this.prevQuestions.Count == 0)
     {
         this.buttonPrev.Enabled = false;
     }
     displayQuest();
 }
Exemple #2
0
 public void getNextQuest()
 {
     if (currentQuestion != null)
     {
         this.prevQuestions.Push(currentQuestion);
         this.buttonPrev.Enabled = true;
     }
     currentQuestion = new SingleWordQuestion(ag, difficulty, NUM_LETTERS, rnd);
     displayQuest();
 }
Exemple #3
0
 public Game5Form(azbukaGame game)
 {
     InitializeComponent();
     ag              = game;
     difficulty      = 1;
     currentQuestion = null;
     prevQuestions   = new Stack <SingleWordQuestion>();
     player          = new SoundPlayer();
     rnd             = new Random();
     failNum         = 0;
     score           = 0;
 }