예제 #1
0
        static void Main(string[] args)
        {
            System.Console.WriteLine("*** *** *** *** *** *** *** *** *** ***");
            Wizard hermione  = new Wizard("Hermione");
            Wizard millicent = new Wizard("Millicent");

            hermione.heal();
            hermione.fireball(millicent);

            System.Console.WriteLine("*** *** *** *** *** *** *** *** *** ***");
            Ninja naruto = new Ninja("Naruto");
            Ninja sakura = new Ninja("Sakura");

            naruto.steal(sakura);
            naruto.get_away();

            System.Console.WriteLine("*** *** *** *** *** *** *** *** *** ***");
            Samurai masamune = new Samurai("Masamune");
            Samurai hattori  = new Samurai("Hattori");

            hattori.death_blow(masamune);
            hattori.death_blow(masamune);
            masamune.meditate();
            System.Console.WriteLine(Samurai.how_many());
        }
예제 #2
0
        static void Main(string[] args)
        {
            Samurai foo = new Samurai("foo");
            Samurai bar = new Samurai("bar");
            Samurai boo = new Samurai("boo");
            Samurai doo = new Samurai("doo");

            Console.WriteLine(doo.how_many());
        }
예제 #3
0
        static void Main(string[] args)
        {
            Wizard merlin = new Wizard("merlin");

            merlin.fireball(merlin);
            Console.WriteLine(merlin.health);
            Samurai foo = new Samurai("Musashi");

            foo.how_many();
        }