static void Main(string[] args) { Human human1 = new Human("Human-Taylor"); Human human2 = new Human("Human-Mac"); Wizard wizard1 = new Wizard("Wizard-Chris"); Ninja ninja1 = new Ninja("Ninja-Gary"); Samurai samurai1 = new Samurai("Samurai-Angie"); human1.Attack(human2); wizard1.Attack(human2); wizard1.Heal(human2); ninja1.Attack(human2); ninja1.Steal(human2); samurai1.Attack(human2); samurai1.Meditate(); human2.Attack(wizard1); wizard1.Attack(human1); wizard1.Heal(human1); ninja1.Attack(human1); ninja1.Steal(human1); samurai1.Attack(human1); samurai1.Attack(human2); wizard1.Heal(human1); human1.Attack(ninja1); human1.Attack(samurai1); samurai1.Meditate(); samurai1.Attack(ninja1); human1.displayInfo(); human2.displayInfo(); wizard1.displayInfo(); ninja1.displayInfo(); samurai1.displayInfo(); }
static void Main(string[] args) { Wizard James = new Wizard("James"); James.Stats(); Human Bob = new Human("Bob"); James.Attack(Bob); James.Stats(); }
static void Main(string[] args) { Human person_1 = new Human("person_1"); Ninja person_2 = new Ninja("person_2"); Wizard person_3 = new Wizard("person_3"); Samurai person_4 = new Samurai("person_4"); person_4.Attack(person_1); System.Console.WriteLine(person_1.Health); person_3.Heal(person_1); person_3.Heal(person_1); person_2.Steal(person_1); person_3.Attack(person_1); System.Console.WriteLine($"How is {person_1.Name} doing? HP: {person_1.Health}"); }
static void Main(string[] args) { Human Tyler = new Human("Tyler"); Wizard Art = new Wizard("Art"); Ninja Jeff = new Ninja("Jeff"); Samurai Todd = new Samurai("Todd"); Jeff.Attack(Tyler); Tyler.getStats(); Todd.Meditate(); Todd.getStats(); Art.Attack(Todd); Todd.getStats(); Todd.Meditate(); Todd.getStats(); }
static void Main(string[] args) { Ninja vasea = new Ninja("Mr.Vasea"); Ninja michelle = new Ninja("Michelle"); michelle.Attack(vasea); vasea.ShowStats(); Wizard ana = new Wizard("Ana"); ana.Heal(vasea); vasea.ShowStats(); Samurai david = new Samurai("David"); while (michelle.Health > 0) { david.Attack(michelle); vasea.Attack(michelle); ana.Attack(michelle); } }