コード例 #1
0
        private static void HeroDefeated(Hero hero, Enemy enemy)
        {
            if (hero.health < 0)
            {
                hero.health = 0;
            }

            Miscellaneous.HeroDefeatedText();

            Console.ReadLine();
            Endings.BadEnd(hero);
        }
コード例 #2
0
        public static void MapController(Hero hero)
        {
            Console.Clear();
            bool end = false;

            while (end == false)
            {
                Console.Clear();

                int n = 1;

                MapVisibilityChanger(y, x);
                n = MapUI(hero, n);

                map[y, x] = marker;
                marker    = '+';

                MovementAndOther(ref x, ref y, ref end, map);

                if (map[y, x] != '-')
                {
                    marker = map[y, x];
                }

                map[y, x] = 'X';

                MapCharacterChecker(hero, ref marker, ref end);

                if (hero.health == 0)
                {
                    Endings.BadEnd(hero);
                }
            }
            Endings.End(hero);
            Console.ReadLine();
        }