static void Main(string[] args) { Human Javier = new Human("Javier"); Wizard gandolph = new Wizard("gandolph"); Samurai jack = new Samurai("jack"); Ninja black = new Ninja("black"); Console.WriteLine($"name: {gandolph.name}"); Console.WriteLine($"Health: {gandolph.health}"); Console.WriteLine($"strength: {gandolph.strength}"); black.Steal(gandolph); black.Get_Away(); Console.WriteLine($"name: {black.name}"); Console.WriteLine($"Health: {black.health}"); Console.WriteLine($"dexterity: {black.dexterity}"); Console.WriteLine($"Jack Health: {jack.health}"); gandolph.Fireball(jack); Console.WriteLine($"jack Health: {jack.health}"); Javier.attack(gandolph); Console.WriteLine($"gandolph Health: {gandolph.health}"); jack.Death_Blow(gandolph); Console.WriteLine($"gandolph Health: {gandolph.health}"); jack.Meditate(); Console.WriteLine($"jack Health: {jack.health}"); gandolph.Heal(gandolph); Console.WriteLine($"gandolph Health: {gandolph.health}"); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); Wizard mitchell = new Wizard("Mitchell"); Wizard greg = new Wizard("Greg"); Ninja adrien = new Ninja("Adrien"); Ninja michael = new Ninja("Michael Choi"); Samurai anne = new Samurai("Anne"); mitchell.getStats(); adrien.getStats(); anne.getStats(); mitchell.Attack(anne); anne.Attack(mitchell); adrien.Steal(anne); anne.Meditate(); greg.Heal(anne); anne.getStats(); Console.WriteLine("Greg says: She's... Unkillable... What have I done."); anne.Attack(greg); michael.Attack(anne); // adrien.Attack(mitchell); // adrien.Attack(mitchell); // adrien.Attack(mitchell); // adrien.Attack(mitchell); // adrien.Attack(mitchell); // adrien.Attack(mitchell); // adrien.getStats(); }
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(); }
static void Main(string[] args) { Wizard Sam = new Wizard("Sam"); Ninja James = new Ninja("James"); Samurai Jeff = new Samurai("Jeff"); Sam.Attack(James); James.Attack(Jeff); Jeff.Attack(Sam); Sam.Heal(James); James.Steal(Jeff); Jeff.Meditate(); }
static void Main(string[] args) { Samurai P1 = new Samurai("Lance"); Samurai P2 = new Samurai("Erik"); Console.WriteLine(P1.Name); Console.WriteLine(P2.Name); P1.Attack(P2); P2.Attack(P1); P1.Meditate(); Console.WriteLine($"{P1.Name}'s health is now {P1.HealthProp}"); Console.WriteLine($"{P2.Name}'s health is now {P2.HealthProp}"); }
static void Main(string[] args) { Human Dave = new Human("Dave"); Wizard Gandolf = new Wizard("Gandolf"); Ninja Shredder = new Ninja("Shredder"); Samurai Kyoto = new Samurai("Kyoto"); Dave.Attack(Shredder); Gandolf.Attack(Shredder); Kyoto.Attack(Gandolf); Shredder.Attack(Gandolf); Gandolf.Heal(Kyoto); Shredder.Steal(Kyoto); Kyoto.Meditate(); }
static void Main(string[] args) { Wizard wizard1 = new Wizard("Gandalph"); Ninja ninja1 = new Ninja("Ninjjja"); Samurai samurai1 = new Samurai("Samurrraiiii"); // ninja1.Attack(wizard1); // samurai1.Attack(wizard1); // samurai1.Attack(wizard1); // wizard1.Heal(samurai1); // wizard1.Heal(samurai1); wizard1.Attack(samurai1); samurai1.Meditate(); ninja1.Steal(samurai1); }
static void Main(string[] args) { Wizard Nat = new Wizard("Nat"); Ninja Josh = new Ninja("Josh"); Human Balazs = new Human("Balazs"); Samurai Will = new Samurai("Will"); Nat.Attack(Josh); Nat.Fireball(Josh); Josh.Steal(Nat); Will.Attack(Balazs); Josh.getAway(); Nat.Heal(); Will.Meditate(); Will.deathBlow(Nat); Will.deathBlow(Josh); }
static void Main(string[] args) { Wizard jack = new Wizard("Jack", 3, 3); Ninja tom = new Ninja("Tom", 3, 3, 100); Samurai ben = new Samurai("Ben", 3, 3, 3); jack.Health = 4; int jackHealth = jack.Attack(tom); Console.WriteLine("jackHealth = " + jackHealth); int samuariHealth = tom.Attack(ben); Console.WriteLine("samuariHealth = " + samuariHealth); jack.Heal(tom); ben.Meditate(100); tom.Steal(jack); }
static void Main(string[] args) { Human me = new Human("me"); Ninja tokyo = new Ninja("tokyo"); Wizard pine = new Wizard("pine"); Samurai king = new Samurai("king"); me.Attack(tokyo); System.Console.WriteLine($"tokyo's health: {tokyo.Health}"); pine.Heal(tokyo); System.Console.WriteLine($"tokyo's health: {tokyo.Health}"); tokyo.Steal(king); System.Console.WriteLine($"tokyo's health: {tokyo.Health}"); System.Console.WriteLine($"king's health: {king.Health}"); king.Meditate(); System.Console.WriteLine($"king's health: {king.Health}"); }
static void Main(string[] args) { // Test wizard Attack method: Wizard GoodWizard = new Wizard("Dumbledore"); Wizard BadWizard = new Wizard("Saruman"); // Console.WriteLine($"{GoodWizard.Name}, {GoodWizard.Health}"); // Console.WriteLine($"{BadWizard.Name}, {BadWizard.Health}"); // GoodWizard.Attack(BadWizard); // Console.WriteLine($"{GoodWizard.Name}, {GoodWizard.Health}"); // Console.WriteLine($"{BadWizard.Name}, {BadWizard.Health}"); // Test wizard Attack method: Ninja GoodNinja = new Ninja("Jackie Chan"); Ninja BadNinja = new Ninja("Jet Lee"); // Console.WriteLine($"{GoodNinja.Name} {GoodNinja.Health}"); // Console.WriteLine($"{BadNinja.Name} {BadNinja.Health}"); // GoodNinja.Attack(BadNinja); // Console.WriteLine($"{GoodNinja.Name} {GoodNinja.Health}"); // Console.WriteLine($"{BadNinja.Name} {BadNinja.Health}"); // Test Samurai Attack method: Samurai GoodSamurai = new Samurai("Chuck Norris"); Samurai BadSamurai = new Samurai("Darth Vader"); BadSamurai.Health = 64; // Console.WriteLine($"{GoodSamurai.Name} {GoodSamurai.Health}"); // Console.WriteLine($"{BadSamurai.Name} {BadSamurai.Health}"); // GoodSamurai.Attack(BadSamurai); // Console.WriteLine($"{GoodSamurai.Name} {GoodSamurai.Health}"); // Console.WriteLine($"{BadSamurai.Name} {BadSamurai.Health}"); // Test Wizard Heal method GoodWizard.Heal(GoodSamurai); Console.WriteLine(GoodSamurai.Health); // Test Samurai Mediate method BadSamurai.Meditate(); Console.WriteLine(BadSamurai.Health); // Test Ninja Steal method GoodNinja.Steal(BadWizard); Console.WriteLine(GoodNinja.Health); Console.WriteLine(BadWizard.Health); }
static void Main(string[] args) { Wizard wizard1 = new Wizard("Wizard 1"); Ninja ninja1 = new Ninja("Ninja 1"); Samurai samurai1 = new Samurai("Samurai 1"); Console.WriteLine(wizard1.Health); ninja1.Attack(wizard1); ninja1.Attack(samurai1); samurai1.Attack(wizard1); Console.WriteLine(samurai1.Health); samurai1.Meditate("Samurai 1"); Console.WriteLine(samurai1.Health); wizard1.Heal(ninja1); Console.WriteLine(ninja1.Health); ninja1.Steal(wizard1); Console.WriteLine(ninja1.Health); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); Ninja ninja1 = new Ninja("Ninja Hanzo"); Wizard wizard1 = new Wizard("Wizard Merlin"); Samurai samurai1 = new Samurai("Samurai Tomoe"); Ninja ninja2 = new Ninja("Ninja Kotaro"); wizard1.Attack(ninja1); wizard1.Heal(ninja2); wizard1.Stats(); ninja1.Stats(); ninja1.Steal(samurai1); ninja1.Stats(); samurai1.Stats(); samurai1.Meditate(); samurai1.Stats(); }
static void Main(string[] args) { Human joe = new Human("Joe"); Wizard gandalf = new Wizard("Gandalf"); Ninja naruto = new Ninja("Naruto"); Samurai hanzo = new Samurai("Hanzo"); Console.WriteLine(hanzo.Health); gandalf.Attack(hanzo); gandalf.Attack(hanzo); naruto.Attack(gandalf); hanzo.Attack(naruto); gandalf.Heal(gandalf); hanzo.Meditate(); naruto.Steal(hanzo); Console.WriteLine(hanzo.Health); Console.WriteLine(gandalf.Health); Console.WriteLine(naruto.Health); }