static void Main(string[] args)
        {
            Human alfie = new Human("Alfie Peters");

            alfie.Display();

            Console.WriteLine("====================================");
            Human kenny = new Human("Kenny Omega", 5, 7, 8, 100);

            kenny.Display();

            alfie.Attack(kenny);
            Console.WriteLine("====================================");

            kenny.Attack(alfie);
            Console.WriteLine("====================================");

            Ninja tozawa = new Ninja("Akira Tozawa");

            tozawa.Display();
            Console.WriteLine("====================================");

            Wizard merlin = new Wizard("Merlin");

            merlin.Display();
            Console.WriteLine("====================================");

            Samurai elsam = new Samurai("El Samurai");

            elsam.Display();
            Console.WriteLine("====================================");

            merlin.Attack(elsam);
            Console.WriteLine("====================================");

            tozawa.Attack(alfie);
            Console.WriteLine("====================================");

            elsam.Attack(kenny);
            Console.WriteLine("====================================");

            merlin.Heal(alfie);
            Console.WriteLine("====================================");

            elsam.Meditate();
            Console.WriteLine("====================================");

            tozawa.Steal(elsam);
            Console.WriteLine("====================================");

            tozawa.Steal(alfie);
            Console.WriteLine("====================================");
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Human   Player    = new Human("Player");
            Human   Enemy     = new Human("Enemy", 5, 5, 5, 1055);
            Wizard  AllyOne   = new Wizard("Gandalf");
            Ninja   AllyTwo   = new Ninja("Sekiro");
            Samurai AllyThree = new Samurai("Mr. Samurai");

            Console.WriteLine(AllyThree.Health);
            Enemy.Attack(AllyThree);
            Console.WriteLine(AllyThree.Health);
            AllyThree.Meditate();
            Console.WriteLine(AllyThree.Health);
            AllyOne.Attack(Enemy);
            AllyTwo.Attack(Enemy);
            Console.WriteLine(Enemy.Health);
            AllyThree.Attack(Enemy);
            Console.WriteLine(Enemy.Health);
            AllyThree.Attack(Enemy);
            Console.WriteLine(Enemy.Health);
            AllyThree.Attack(Enemy);
            Console.WriteLine(Enemy.Health);
            AllyOne.Heal(Enemy);
            Console.WriteLine(Enemy.Health);
            Console.WriteLine(AllyTwo.Health);
            Enemy.Attack(AllyTwo);
            Console.WriteLine(AllyTwo.Health);
            Enemy.Attack(AllyTwo);
            Console.WriteLine(AllyTwo.Health);
            AllyTwo.Steal(Enemy);
            Console.WriteLine(AllyTwo.Health);
            Console.WriteLine(Enemy.Health);
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Wizard  wizard  = new Wizard("Harry");
            Ninja   ninja   = new Ninja("Naruto");
            Samurai samurai = new Samurai("Jack");

            Console.WriteLine($"Yer a Wizard, {wizard.Name}!");
            Console.WriteLine($"{ninja.Name} is Ninja who wants to be Hokage.");
            Console.WriteLine($"Samurai {samurai.Name} must defeat the evil Aku!");

            Console.WriteLine(wizard.Health);
            Console.WriteLine(ninja.Health);
            Console.WriteLine(samurai.Health);

            wizard.Attack(ninja);
            ninja.Attack(samurai);
            samurai.Attack(wizard);

            wizard.Heal(wizard);
            ninja.Steal(samurai);
            samurai.Meditate();

            Console.WriteLine(wizard.Health);
            Console.WriteLine(ninja.Health);
            Console.WriteLine(samurai.Health);
        }
        static void Main(string[] args)
        {
            Wizard  JoeWiz = new Wizard("Joe Wizard");
            Ninja   JoeNin = new Ninja("Joe Ninja");
            Samurai JoeSam = new Samurai("Joe Samurai");

            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
            JoeWiz.Attack(JoeSam);
            System.Console.WriteLine("\n");
            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
            JoeNin.Attack(JoeWiz);
            System.Console.WriteLine("\n");
            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
            JoeWiz.Heal(JoeWiz);
            System.Console.WriteLine("\n");
            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
            JoeSam.Meditate();
            System.Console.WriteLine("\n");
            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
            JoeNin.Steal(JoeSam);
            System.Console.WriteLine("\n");
            System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}");
            System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}");
            System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}");
        }
Exemple #5
0
        static void Main(string[] args)
        {
            ///////////////////////////  Human Tests //////////////////////////////
            Human phil = new Human("Phil");
            //System.Console.WriteLine(phil.Name);

            Human sam = new Human("Sam", 5, 7, 5, 120);

            //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength);
            phil.Attack(sam);
            //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength);



            ///////////////////////////  Wizard Tests //////////////////////////////
            Wizard gandolf = new Wizard("Gandolf");

            //System.Console.WriteLine(gandolf.Dexterity);
            //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength);
            gandolf.Heal();
            //System.Console.WriteLine(gandolf.Health);
            //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength);
            gandolf.Fireball(sam);
            // Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength);



            ///////////////////////////  Ninja Tests //////////////////////////////

            Ninja dude = new Ninja("dude");

            //Console.WriteLine("Character Name: " + dude.Name + " Health: " + dude.Health + " Intelligence: " + dude.Intelligence + " Dexterity: " + dude.Dexterity + " Strength: " + dude.Strength);

            dude.Steal();
            dude.Get_Away();
            //Console.WriteLine("Character Name: " + dude.Name + " Health: " + dude.Health + " Intelligence: " + dude.Intelligence + " Dexterity: " + dude.Dexterity + " Strength: " + dude.Strength);



            ///////////////////////////  Samurai Tests //////////////////////////////
            Samurai joe  = new Samurai("joe");
            Wizard  test = new Wizard("test");

            joe.Death_Blow(test);
            //System.Console.WriteLine(test.Health);

            phil.Attack(joe);
            //System.Console.WriteLine(joe.Health);
            joe.Meditate();
            //System.Console.WriteLine(joe.Health);
        }
        static void Main(string[] args)
        {
            //Human assignment
            Human human1 = new Human("a");
            Human human2 = new Human("b", 3, 5, 6, 200);

            Console.WriteLine(human2.Attack(human1));

            //Wizard, Ninja, Warrior assignment
            Wizard  wi1 = new Wizard("Wiz");
            Ninja   n1  = new Ninja("Nin");
            Warrior wr1 = new Warrior("Wa");

            wi1.Heal(wr1);
            wi1.Heal(n1);
            wi1.Heal(wi1);
            n1.Steal(wr1);
            wr1.Meditate();
            wr1.Attack(n1);
            wi1.Attack(wr1);
            n1.Attack(wi1);
        }
Exemple #7
0
        static void Main(string[] args)
        {
            Human   me      = new Human("Justin", 4, 5, 2, 120);
            Wizard  wizard  = new Wizard("Wizard");
            Ninja   ninja   = new Ninja("Ninja");
            Samurai samurai = new Samurai("Samurai");

            me.Attack(wizard);
            wizard.Attack(me);
            wizard.Heal(me);
            ninja.Attack(me);
            ninja.Steal(me);
            samurai.Attack(me);
            samurai.Attack(me);
            wizard.Heal(me);
            me.Attack(ninja);
            me.Attack(samurai);
            samurai.Meditate();
            samurai.Attack(ninja);
            samurai.Attack(ninja);
            samurai.Attack(ninja);
            samurai.Attack(ninja);
        }
Exemple #8
0
        static void Main(string[] args)
        {
            Wizard  wizard  = new Wizard("Wizard");
            Ninja   ninja   = new Ninja("Ninja");
            Samurai samurai = new Samurai("Samurai");

            Console.WriteLine("1. ************************************");
            Console.WriteLine("*** Init ***");
            wizard.ShowInfo();
            ninja.ShowInfo();
            samurai.ShowInfo();
            Console.WriteLine("");

            Console.WriteLine("2. ************************************");
            Console.WriteLine("*** Ninja stole from Wizard ***");
            ninja.Steal(wizard);
            wizard.ShowInfo();
            ninja.ShowInfo();
            samurai.ShowInfo();
            Console.WriteLine("");

            Console.WriteLine("3. ************************************");
            Console.WriteLine("*** Wizard attacked Ninja ***");
            wizard.Attack(ninja);
            wizard.ShowInfo();
            ninja.ShowInfo();
            samurai.ShowInfo();
            Console.WriteLine("");

            Console.WriteLine("4. ************************************");
            Console.WriteLine("*** Samurai attacked Wizard ***");
            samurai.Attack(wizard);
            wizard.ShowInfo();
            ninja.ShowInfo();
            samurai.ShowInfo();
            Console.WriteLine("");
        }