Esempio n. 1
0
        public static void UseMenu()
        {
            Drawer.DrawTitle();
            Drawer.DrawMenu(ConsoleColor.Red, ConsoleColor.Black, ConsoleColor.Black, ConsoleColor.Black, ConsoleColor.Red, ConsoleColor.Green, ConsoleColor.Green, ConsoleColor.Green, menu1, menu2, menu3, menu4);
            int menuNum = SelectMenu();

            switch (menuNum)
            {
            case 1:
                VisualGame.StartGame(new NewGame(new GamerInfo(VisualGame.Greetings(), 0, GameTable.CreateTable())));
                break;

            case 2:
                MenuResume.ContinueGame();
                break;

            case 3:
                MenuRecords.DrawRecords();
                break;

            case 4:
                MenuSelectOpt.Head();
                break;
            }
        }
Esempio n. 2
0
        public static void ContinueGame()
        {
            Drawer.DrawContinueMenu();
            int    x    = Console.CursorLeft;
            int    y    = Console.CursorTop;
            string name = EnterName();

            while (!new FileWorker().CheckNameInSaves(name))
            {
                Console.Write("Save does not exist\r");
                Thread.Sleep(1200);
                Console.Write(new string(' ', 19) + "\r");
                Console.SetCursorPosition(x, y);
                Console.Write(new string(' ', name.Length) + "\r");
                Console.SetCursorPosition(x, y);
                name = EnterName();
            }
            Console.Clear();
            VisualGame.StartGame(GameResume.GetGame(name));
        }