Ejemplo n.º 1
0
        public static void WithPig(Hero hero, DemonPig demonpig)
        {
            while (demonpig.HP > 0 && hero.HP > 0)
            {
                Stats(demonpig, hero);

                hero.YourTurn(hero.Choice(), demonpig);

                if (demonpig.HP > 0)
                {
                    demonpig.PigTurn(demonpig.EChoice(), hero);
                    IsHeroDead(hero);
                }
            }

            Console.WriteLine("{0} was killed!", demonpig.Name);
            Console.ReadLine();
            Console.Clear();
        }
Ejemplo n.º 2
0
        public static void WithKnight(Hero hero, Knight knight)
        {
            while (knight.HP > 0 && hero.HP > 0)
            {
                Stats(knight, hero);

                hero.YourTurn(hero.Choice(), knight);

                if (knight.HP > 0)
                {
                    knight.KnightTurn(knight.EChoice(), hero);
                    IsHeroDead(hero);
                }
            }

            Console.WriteLine("{0} was killed!", knight.Name);
            Console.ReadLine();
            Console.Clear();
        }
Ejemplo n.º 3
0
        public static void WithDragon(Hero hero, Dragon dragon)
        {
            while (dragon.HP > 0 && hero.HP > 0)
            {
                Stats(dragon, hero);

                hero.YourTurn(hero.Choice(), dragon);

                if (dragon.HP > 0)
                {
                    dragon.DragonTurn(dragon.EChoice(), hero);
                    IsHeroDead(hero);
                }
            }

            Console.WriteLine("{0} was killed !", dragon.Name);
            Console.ReadLine();
            Console.Clear();
        }
Ejemplo n.º 4
0
        public static void WithGrunt(Hero hero, Grunt grunt)
        {
            while (grunt.HP > 0 && hero.HP > 0)
            {
                Stats(grunt, hero);

                hero.YourTurn(hero.Choice(), grunt);

                if (grunt.HP > 0)
                {
                    grunt.GruntTurn(grunt.EChoice(), hero);
                    IsHeroDead(hero);
                }
            }

            Console.WriteLine("{0} was killed!", grunt.Name);
            Console.ReadLine();
            Console.Clear();
        }