public void getPrevQuest() { currentQuestion = this.prevQuestions.Pop(); if (this.prevQuestions.Count == 0) { this.buttonPrev.Enabled = false; } displayQuest(); }
public void getNextQuest() { if (currentQuestion != null) { this.prevQuestions.Push(currentQuestion); this.buttonPrev.Enabled = true; } currentQuestion = new SingleWordQuestion(ag, difficulty, NUM_LETTERS, rnd); displayQuest(); }
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; }