コード例 #1
0
        static public void OpenMenu(string nextMenu)
        {
            Console.Beep(1000, 20);
            Console.Beep(1200, 20);
            switch (nextMenu)
            {
            case "PlayGame":
                PlayGame();
                break;

            case "Exit":
                System.Environment.Exit(0);
                break;

            case "HighScores":
                throw new NotImplementedException();
                break;

            case "Main Menu":
                var FromInitialNextMenu = Menu.ShowInitial();
                Core.OpenMenu(FromInitialNextMenu);
                break;

            case "PlayerNameTyper":
                var FromPlayerNameTypeNextMenu = Menu.ShowPlayerNameTyper();
                Core.OpenMenu(FromPlayerNameTypeNextMenu);
                break;
            }
        }
コード例 #2
0
        static public void OpenMenu(string nextMenu)
        {
            Console.Beep(1000, 20);
            Console.Beep(1200, 20);
            switch (nextMenu)
            {
            case "Start":
                PlayGame();
                break;

            case "Wyjśćie":
                System.Environment.Exit(0);
                break;

            case "Wynik":
                throw new NotImplementedException();
                break;

            case "Menu":
                var FromInitialNextMenu = Menu.ShowInitial();
                Core.OpenMenu(FromInitialNextMenu);
                break;

            case "Nazwa Gracza":
                var FromPlayerNameTypeNextMenu = Menu.ShowPlayerNameTyper();
                Core.OpenMenu(FromPlayerNameTypeNextMenu);
                break;
            }
        }
コード例 #3
0
        static public void Init()
        {
            Console.SetWindowSize(60, 30);
            Console.Clear();
            Console.CursorVisible = false;
            var nextMenu = Menu.ShowInitial();

            OpenMenu(nextMenu);
        }