Example #1
0
        // true - start
        // false - help, credits
        public bool SelectOptionFromTitleScreen()
        {
            TitleScreen.SelectOption();
            switch (TitleScreen.CurrentOption)
            {
            case TitleScreenOption.Start:
                StartMenuScreen.Draw();
                return(true);

            case TitleScreenOption.Help:
                HelpScreen.Draw();
                Back();
                return(false);

            case TitleScreenOption.Credits:
                CreditsScreen.Draw();
                Back();
                return(false);

            case TitleScreenOption.Exit:
                Environment.Exit(0);
                break;
            }

            return(false);
        }
Example #2
0
        public Character SelectOptionFromStartMenuScreen()
        {
            StartMenuScreen.CurrentOption = StartMenuOption.NewGame;
            StartMenuScreen.SelectOption();
            switch (StartMenuScreen.CurrentOption)
            {
            case StartMenuOption.LoadGame:
                LoadGameScreen.Draw();
                return(LoadGameScreen.GetCharacter());

            case StartMenuOption.NewGame:
                CharacterCreationScreen.Draw();
                return(CharacterCreationScreen.CreateCharacter());

            case StartMenuOption.Back:
                TitleScreen.Draw();
                //this.SelectOptionFromTitleScreen();
                break;
            }

            return(null);
        }