예제 #1
0
        static void Main(string[] args)
        {
            Human newHuman = new Human("Mendel");
            // System.Console.WriteLine("Your name is: {0}", newHuman.name);
            // System.Console.WriteLine("{0}'s health is: {1}", newHuman.name, newHuman.health);
            // System.Console.WriteLine("{0}'s strength is: {1}", newHuman.name, newHuman.strength);
            // System.Console.WriteLine("{0}'s intelligence is: {1}", newHuman.name, newHuman.intelligence);
            // System.Console.WriteLine("{0}'s dexterity is: {1}", newHuman.name, newHuman.dexterity);

            Wizard Gandalf = new Wizard("Gandalf");

            // Gandalf.Heal();
            Gandalf.Fireball(Gandalf);
            Gandalf.Fireball(Gandalf);

            Ninja Thomas = new Ninja("Thomas");
            // Thomas.Steal(Gandalf);
            // Thomas.GetAway();

            Samurai Jordan = new Samurai("Jordan");

            Jordan.DeathBlow(Gandalf);
            Jordan.Meditate();
            Samurai.HowMany();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Human richard = new Human("Richard");
            // Console.WriteLine("Human {0} info: {1} is strength", richard.name, richard.strength);

            Wizard john = new Wizard("John");
            // Console.WriteLine("Wizard {0} info: {1} is strength", john.name, john.strength);

            Ninja brad = new Ninja("Brad");

            // john.attack(richard);
            // john.heal();
            // brad.Steal(john);
            // brad.GetAway();

            Samurai virginia = new Samurai("Virginia");

            virginia.DeathBlow(richard);
            for (int i = 0; i < 3; i++)
            {
                john.attack(richard);
            }
            virginia.DeathBlow(richard);
        }
예제 #3
0
        static void Main(string[] args)
        {
            Wizard  claire = new Wizard("Claire");
            Wizard  troy   = new Wizard("Troy");
            Ninja   frank  = new Ninja("Frank");
            Samurai evan   = new Samurai("Evan");
            Samurai phil   = new Samurai("Phil");

            Console.WriteLine(frank.current_health);
            claire.Fireball(frank);
            claire.Fireball(3);
            evan.Attack(claire);
            claire.Heal();
            evan.DeathBlow(claire);
            evan.HowMany(claire, troy, frank, evan, phil);
            frank.GetAway();
            frank.Stealth(phil);
            troy.Fireball(frank);
            troy.Fireball(frank);
        }