Example #1
0
        static void Main(string[] args)
        {
            Wizard  Wiz    = new Wizard("Wiz");
            Ninja   Naruto = new Ninja("Naruto");
            Samurai Kenshi = new Samurai("Kenshi");

            Naruto.Steal(Wiz);
            Naruto.Attack(Kenshi);
            Wiz.Attack(Naruto);
            Wiz.Heal(Wiz);
            Kenshi.Attack(Naruto);
            Kenshi.Meditate(Kenshi);
            Console.WriteLine($"Wiz's HP: {Wiz.healthProp}");
            Console.WriteLine($"Naruto's HP: {Naruto.healthProp}");
            Console.WriteLine($"Kenshi's HP: {Kenshi.healthProp}");
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("WizNinSam");
            Human   Adrien = new Human("Adrien");
            Samurai Benny  = new Samurai("Benny Bob");

            Benny.Attack(Adrien);
            Benny.Meditate();
            Ninja Nibbles = new Ninja("Mr. Nibbles");

            Nibbles.Attack(Benny);
            Wizard Walter = new Wizard("Walter Morgan");

            Walter.Attack(Benny);
            Walter.Heal(Adrien);
        }
Example #3
0
        static void Main(string[] args)
        {
            Wizard  treavor = new Wizard();
            Wizard  Don     = new Wizard();
            Ninja   jenny   = new Ninja();
            Samurai Sal     = new Samurai();
            Samurai Andrea  = new Samurai();

            treavor.heal();
            treavor.fireball(Don);
            jenny.steal();
            jenny.get_away();
            Sal.death_blow(Andrea);
            Andrea.meditate();

            Console.WriteLine("Hello World!");
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Human faizan = new Human("Faizan");
            Human binh   = new Human("Binh", 5, 4, 4, 110);

            System.Console.WriteLine(binh.Health);
            //System.Console.WriteLine(faizan.Health);
            binh.Attack(faizan);
            binh.Attack(faizan);
            faizan.Attack(binh);
            faizan.Attack(binh);
            faizan.Attack(binh);
            Console.WriteLine(binh.Health);
            Wizard wizard1 = new Wizard("Jason");

            Console.WriteLine(wizard1.Strength);
            Console.WriteLine(wizard1.Health);
            wizard1.Heal();
            Wizard wizard2 = new Wizard("Nick");

            wizard1.Fireball(wizard2);
            Ninja ninja1 = new Ninja("Mike");
            Ninja ninja2 = new Ninja("Jonny");

            ninja1.Steal(ninja2);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja2.Steal(ninja1);
            ninja1.Get_Away();
            Samurai samurai1 = new Samurai("Oz");
            Samurai samurai2 = new Samurai("Anne");
            Samurai samurai3 = new Samurai("Anthony");

            ninja1.Steal(samurai1);
            samurai1.Death_Blow(ninja1);
            samurai1.Meditate();
            Samurai.How_Many();
        }
Example #5
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Wizard tim = new Wizard("Tim");
            Ninja  joe = new Ninja("Joe");

            tim.Attack(joe);
            tim.Heal(joe);

            joe.Attack(tim);

            Samurai jack = new Samurai("Jack");

            jack.Attack(tim);
            joe.Steal(jack);
            jack.Attack(joe);
            jack.Attack(joe);
            jack.Attack(joe);
        }
Example #6
0
        static void Main(string[] args)
        {
            Wizard  Arandil = new Wizard("Arandil");
            Ninja   Gerrath = new Ninja("Gerrath");
            Samurai Beldar  = new Samurai("Beldar");

            Beldar.attack(Gerrath);
            System.Console.WriteLine("================================");
            Gerrath.Drain_Life(Beldar);
            System.Console.WriteLine("================================");
            Arandil.Heal(Gerrath);
            System.Console.WriteLine("================================");
            Gerrath.Get_Away();
            System.Console.WriteLine("================================");
            Arandil.Fireball(Beldar);
            System.Console.WriteLine("================================");
            Beldar.Death_Blow(Arandil);
            System.Console.WriteLine(Arandil.health);
            System.Console.WriteLine("================================");
            Beldar.Meditate();
        }