Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Human fred   = new Human();
            Human george = new Human();

            fred.attack(george);

            Console.WriteLine(george.getHealth());

            Console.WriteLine();
            Console.WriteLine();

            Wizard gandalf = new Wizard();

            gandalf.fireball(fred);
            gandalf.heal();

            Ninja naruto = new Ninja();

            naruto.steal(gandalf);
            naruto.get_away();

            Samurai jack = new Samurai();

            jack.medidate();
            Samurai shigeru = new Samurai();
            Samurai yamada  = new Samurai();

            shigeru.death_blow(yamada);
            Console.WriteLine(Samurai.howMany());
        }