예제 #1
0
파일: Rooms.cs 프로젝트: ivanduzunov/DnD
        public static void FirstRoom(Hero hero, DnDContext context)
        {
            //and here
            Screans.Introduction.Show(hero);
            Screans.MainMenu.Show(hero);
            var room = context.Rooms.Where(r => r.Id == 1).FirstOrDefault();

            Console.Clear();
            Console.BackgroundColor = ConsoleColor.Black;
            Console.ForegroundColor = ConsoleColor.Red;

            Utility.PhaseTyper(room.Description);
            Utility.PhaseTyper("Its time for battle!"); Console.WriteLine();
            Utility.PhaseTyper("Press any key to continue..");
            Console.ReadKey();


            Utility.Battle(hero, context, room.Id);
            ChooseItems.Show(hero, context);
            Screans.MainMenu.Show(hero);
            Utility.Battle(hero, context, room.Id);
            ChooseItems.Show(hero, context);
            Screans.MainMenu.Show(hero);
            SecondRoom(hero, context);
        }
예제 #2
0
파일: Rooms.cs 프로젝트: ivanduzunov/DnD
        public static void ThirdRoom(Hero hero, DnDContext context)
        {
            var room = context.Rooms.Where(r => r.Id == 3).FirstOrDefault();

            Console.Clear();
            Console.BackgroundColor = ConsoleColor.Black;
            Console.ForegroundColor = ConsoleColor.Red;

            Utility.PhaseTyper("Congratulations! You entered to the Final Dungeon!");
            Utility.PhaseTyper($"{hero.Name}'s health: {hero.Health}");
            Utility.PhaseTyper(room.Description);
            Utility.PhaseTyper("Fight! "); Console.WriteLine();
            Utility.PhaseTyper("Press any key to continue..");
            Console.ReadKey();

            Utility.Battle(hero, context, room.Id);
            ChooseItems.Show(hero, context);
            Screans.MainMenu.Show(hero);
            Utility.Battle(hero, context, room.Id);
            ChooseItems.Show(hero, context);
            Screans.MainMenu.Show(hero);
            FinalRoom(hero, context);
        }