Esempio n. 1
0
        public static void WithKnight(Warrior warrior, Knight knight)
        {
            while (knight.health > 0 && warrior.health > 0)
            {
                PrintTheStats(knight, warrior);

                warrior.YourTurn(warrior.Menu(), knight);

                if (knight.health > 0)
                {
                    knight.KnightTurn(knight.EChoice(), warrior);
                    IsHeroDead(warrior);
                }
            }

            Console.WriteLine("{0} was slain!", knight.name);
            Console.ReadLine();
            Console.Clear();
        }
Esempio n. 2
0
        public static void WithDragon(Warrior warrior, Dragon dragon)
        {
            while (dragon.health > 0 && warrior.health > 0)
            {
                PrintTheStats(dragon, warrior);

                warrior.YourTurn(warrior.Menu(), dragon);

                if (dragon.health > 0)
                {
                    dragon.DragonTurn(dragon.EChoice(), warrior);
                    IsHeroDead(warrior);
                }
            }

            Console.WriteLine("{0} was killed !", dragon.name);
            Console.ReadLine();
            Console.Clear();
        }
Esempio n. 3
0
        public static void WithBandit(Warrior warrior, Bandit bandit)
        {
            while (bandit.health > 0 && warrior.health > 0)
            {
                PrintTheStats(bandit, warrior);

                warrior.YourTurn(warrior.Menu(), bandit);

                if (bandit.health > 0)
                {
                    bandit.BanditTurn(bandit.EChoice(), warrior);
                    IsHeroDead(warrior);
                }
            }

            Console.WriteLine("{0} was slain!", bandit.name);
            Console.ReadLine();
            Console.Clear();
        }