static void Main(string[] args) { Wizard wiz1 = new Wizard("Merlin"); Ninja nin1 = new Ninja("George"); Samurai sam1 = new Samurai("Samuel"); sam1.Attack(nin1); sam1.Attack(wiz1); nin1.Attack(sam1); nin1.Attack(wiz1); wiz1.Attack(nin1); wiz1.Attack(sam1); nin1.steal(wiz1); sam1.meditate(); wiz1.heal(); wiz1.heal(); wiz1.fireball(sam1); nin1.get_away(); sam1.death_blow(nin1); wiz1.fireball(sam1); wiz1.fireball(nin1); wiz1.fireball(sam1); wiz1.fireball(nin1); wiz1.fireball(sam1); wiz1.fireball(nin1); sam1.death_blow(nin1); }
static void Main(string[] args) { Humans Jack = new Humans("Jack"); Humans Beefboi = new Humans("Beefboi", 2, 1, 1, 300); int idea = 42; Jack.attack(Beefboi); Beefboi.attack(idea); Wizard Merazmus = new Wizard("Merazmus"); Merazmus.heal(); Wizard otherwiz = new Wizard("otherwiz", 2, 2, 2, 40); otherwiz.fireball(Merazmus); Merazmus.fireball(otherwiz); Merazmus.fireball(otherwiz); Ninja Kubo = new Ninja("Kubo"); Kubo.steal(Merazmus); Beefboi.attack(Kubo); Kubo.steal(Beefboi); Samurai sam1 = new Samurai("Hamurai"); Samurai sam2 = new Samurai("Sam-I-Amurai", 3, 3, 3, 60); Samurai.how_many(); sam1.death_blow(sam2); Merazmus.fireball(sam1); sam1.death_blow(sam2); sam1.meditate(); }
public static void Main(string[] args) { Human human1 = new Human("Bob"); Wizard wizard1 = new Wizard("Gandalf"); Ninja ninja1 = new Ninja("Raphael"); Samurai samurai1 = new Samurai("Angel"); // System.Console.WriteLine("---------------- Attack Testing ------------------"); // System.Console.WriteLine(" ********** Before the Attack **********"); // Console.WriteLine("{0} has a health of {1}", ninja1.name, ninja1.health); // Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); // wizard1.attack(ninja1); // System.Console.WriteLine(" ********** After the Attack **********"); // Console.WriteLine("{0} has a health of {1}", ninja1.name, ninja1.health); // Console.WriteLine("{0} decreases health of {1}", wizard1.name, wizard1.health); // System.Console.WriteLine("---------------- Steal Testing ------------------"); // Console.WriteLine("{0} has a health of {1}", human1.name, human1.health); // Console.WriteLine("{0} has a health of {1}", ninja1.name, ninja1.health); // ninja1.Steal(human1); // System.Console.WriteLine(" ********** After the Steal **********"); // Console.WriteLine("{0} has a health of {1}", human1.name, human1.health); // Console.WriteLine("{0} has a health of {1}", ninja1.name, ninja1.health); // System.Console.WriteLine("---------------- Fireball Testing ------------------"); // Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); // Console.WriteLine("{0} has a health of {1}", samurai1.name, samurai1.health); // wizard1.Fireball(samurai1); // System.Console.WriteLine(" ********** After the Fireball **********"); // Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); // Console.WriteLine("{0} has a health of {1}", samurai1.name, samurai1.health); Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); Console.WriteLine("{0} has a health of {1}", samurai1.name, samurai1.health); samurai1.death_blow(wizard1); // need to modify this, it will not work Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); Console.WriteLine("{0} has a health of {1}", samurai1.name, samurai1.health); // samurai1.death_blow(wizard1); // Console.WriteLine("{0} has a health of {1}", wizard1.name, wizard1.health); // Console.WriteLine("{0} has a health of {1}", samurai1.name, samurai1.health); }