static void Main(string[] args) { Random randy = new Random(); Human jedi = new Human("Luke"); Wizard master = new Wizard("Yoda"); Human sith = new Human("Darth"); jedi.Attack(sith); master.Fireball(sith, randy); System.Console.WriteLine(jedi.health); System.Console.WriteLine(sith.health); Ninja hanzo = new Ninja("Hattori"); System.Console.WriteLine(hanzo.dexterity); hanzo.Steal(sith); hanzo.Get_Away(); System.Console.WriteLine(hanzo.health); System.Console.WriteLine(sith.health); Samarai ronin = new Samarai("Toshiro"); ronin.Death_Blow(sith); System.Console.WriteLine(sith.health); jedi.Attack(ronin); System.Console.WriteLine(ronin.health); ronin.Meditate(); System.Console.WriteLine(ronin.health); System.Console.WriteLine(Samarai.How_Many()); }
static void Main(string[] args) { Human shirogane = new Human("Shirogane Miyuki"); Ninja kei = new Ninja("Shirogane Kei"); Wizard chika = new Wizard("Fujiwara Chika"); Samurai kaguya = new Samurai("Shinomiya Kaguya"); kaguya.Attack(shirogane); System.Console.WriteLine(shirogane.Health); chika.Heal(shirogane); chika.Heal(shirogane); kei.Steal(shirogane); chika.Attack(shirogane); System.Console.WriteLine($"How is {shirogane.Name} doing? HP: {shirogane.Health}"); }