//pagrindinis langas private void SelectMainMenu() { switch (Iterator) { case 1: meniuState = MeniuState.GameType; MenuItems = 3; Iterator = 1; break; case 2: meniuState = MeniuState.Highscores; highScore = HighScoresType.Cl0; MenuItems = 3; Iterator = 1; break; case 3: meniuState = MeniuState.Help; MenuItems = 2; Iterator = 1; break; case 4: meniuState = MeniuState.Quit; break; } }
private void ChangeHihgScoresBack() { switch (highScore) { case HighScoresType.Ar1: highScore = HighScoresType.Cl2; break; case HighScoresType.Ar2: highScore = HighScoresType.Ar1; break; case HighScoresType.Ar3: highScore = HighScoresType.Ar2; break; case HighScoresType.Ar4: highScore = HighScoresType.Ar3; break; case HighScoresType.Ar5: highScore = HighScoresType.Ar4; break; case HighScoresType.Ar6: highScore = HighScoresType.Ar5; break; case HighScoresType.Cl0: highScore = HighScoresType.Ar6; break; case HighScoresType.Cl1: highScore = HighScoresType.Cl0; break; case HighScoresType.Cl2: highScore = HighScoresType.Cl1; break; } }
public Meniu(IHighScores highScores) { highScoresData = highScores; MenuItems = 4; meniuState = MeniuState.Main; highScore = HighScoresType.Cl0; Arcade = ArcadeLevel.Null; Title = "Meniu"; Iterator = 0; InfoText = string.Empty; helpPage = 1; }