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) { var player1 = new Wizard("Eevee", new DeathBlow()); var player2 = new Samurai("Cloud", new Fireball()); Console.WriteLine(player1); Console.WriteLine(player2); player2.UseWeapon(player1); player1.UseWeapon(player2); Samurai.HowMany(); }
static void Main(string[] args) { Wizard claire = new Wizard("Claire"); Wizard troy = new Wizard("Troy"); Ninja frank = new Ninja("Frank"); Samurai evan = new Samurai("Evan"); Samurai phil = new Samurai("Phil"); Console.WriteLine(frank.current_health); claire.Fireball(frank); claire.Fireball(3); evan.Attack(claire); claire.Heal(); evan.DeathBlow(claire); evan.HowMany(claire, troy, frank, evan, phil); frank.GetAway(); frank.Stealth(phil); troy.Fireball(frank); troy.Fireball(frank); }