public void NextProblem() { //Steps //- Locate { voice of country } //- Spell { voice of country } [highlight country] //- Spell { voice of capital } [highlight country] //- Label { highlight country } control.StopHighlighting(); helpControl.Clear(); //Get country to work on currentCountry = GetCountry(); //Pick problem ProblemType problem = GetProblem(currentCountry); if (inputBox != null) { inputBox.SetProblem(problem, mapData.CountryNames[currentCountry]); } control.SetProblem(problem); switch (problem) { case ProblemType.Locate: current = new Problem(problem, currentCountry); PlayVorbis(0, "common\\locate", string.Concat("sounds\\", mapData.CountryNames[currentCountry].ToLower())); break; case ProblemType.SpellCountryVoice: current = new Problem(problem, mapData.CountryNames[currentCountry]); control.HighlightCountry(currentCountry, new Bgra(91, 166, 38, 255)); PlayVorbis(0, "common\\spell", string.Concat("sounds\\", mapData.CountryNames[currentCountry].ToLower())); break; case ProblemType.SpellCountry: current = new Problem(problem, mapData.CountryNames[currentCountry]); control.HighlightCountry(currentCountry, new Bgra(91, 166, 38, 255)); break; case ProblemType.SpellCapitalVoice: current = new Problem(problem, mapData.CountryCapitals[currentCountry]); control.HighlightCountry(currentCountry, new Bgra(24, 30, 217, 255)); PlayVorbis(0, "common\\spell", string.Concat("sounds\\", mapData.CountryCapitals[currentCountry].ToLower())); break; case ProblemType.SpellCapital: current = new Problem(problem, mapData.CountryCapitals[currentCountry]); control.HighlightCountry(currentCountry, new Bgra(24, 30, 217, 255)); break; } }
public void StartReviewing(int type) { helpControl.Clear(); StopHighlighting(); reviewing = type; }