Ejemplo n.º 1
0
        public static void LevelNext()
        {
            Console.Clear();
            Console.WriteLine("Level finished!\n");
            Console.WriteLine("1. Next Level");
            Console.WriteLine("2. Menu");

            switch (Console.ReadKey(true).KeyChar)
            {
            case '1':
            {
                Console.Clear();
                Battle.StartBattle();
                break;
            }

            case '2':
            {
                Console.Clear();
                Meniu.MeniuPrincipal();

                break;
            }

            default:
            {
                LevelNext();
                break;
            }
            }
        }
Ejemplo n.º 2
0
        private static void MeniuProfile() //afisarea meniului Profile Info
        {
            Console.Clear();
            Console.WriteLine("PROFILE INFO\n");
            Console.WriteLine("1. Info");
            Console.WriteLine("2. Delete account");
            Console.WriteLine("3. Logout");
            Console.WriteLine("4. Back");

            switch (Console.ReadKey(true).KeyChar)
            {
            case '1':
            {
                Afisare.ShowStatsHero();

                MeniuPrincipal();

                break;
            }

            case '2':
            {
                string path = Hero.Instance.Name + ".xml";
                if (File.Exists(path))
                {
                    File.Delete(path);
                }

                Console.Clear();

                Console.WriteLine("Account deleted...");
                Console.WriteLine("\nPress any key to go back...");
                Console.ReadKey();

                Meniu.MeniuLogin();

                break;
            }

            case '3':
            {
                Meniu.MeniuLogin();
                break;
            }

            case '4':
            {
                MeniuPrincipal();
                break;
            }

            default:
            {
                MeniuProfile();
                break;
            }
            }
        }