static void Main(string[] args) { Human Player = new Human("Player"); Human Enemy = new Human("Enemy", 5, 5, 5, 1055); Wizard AllyOne = new Wizard("Gandalf"); Ninja AllyTwo = new Ninja("Sekiro"); Samurai AllyThree = new Samurai("Mr. Samurai"); Console.WriteLine(AllyThree.Health); Enemy.Attack(AllyThree); Console.WriteLine(AllyThree.Health); AllyThree.Meditate(); Console.WriteLine(AllyThree.Health); AllyOne.Attack(Enemy); AllyTwo.Attack(Enemy); Console.WriteLine(Enemy.Health); AllyThree.Attack(Enemy); Console.WriteLine(Enemy.Health); AllyThree.Attack(Enemy); Console.WriteLine(Enemy.Health); AllyThree.Attack(Enemy); Console.WriteLine(Enemy.Health); AllyOne.Heal(Enemy); Console.WriteLine(Enemy.Health); Console.WriteLine(AllyTwo.Health); Enemy.Attack(AllyTwo); Console.WriteLine(AllyTwo.Health); Enemy.Attack(AllyTwo); Console.WriteLine(AllyTwo.Health); AllyTwo.Steal(Enemy); Console.WriteLine(AllyTwo.Health); Console.WriteLine(Enemy.Health); }
static void Main(string[] args) { // Console.WriteLine("Hello World!"); Human roman = new Human("Roman"); Human lee = new Human("lee"); Wizard bob = new Wizard("Bob"); Wizard frank = new Wizard("Frank"); Ninja alex = new Ninja("Alex"); Samurai cat = new Samurai("KOT"); roman.Attack(lee); Human lendon = new Human("Lendon", 5, 7, 5, 90); roman.Attack(lendon); Console.WriteLine($"Lendon health: {lendon.Health}"); Console.WriteLine(lee.Health); lendon.Attack(roman); Console.WriteLine($"Roman health: {roman.Health}"); bob.Attack(frank); frank.Attack(roman); bob.Attack(lee); alex.Attack(roman); Console.WriteLine($"Roman dexterity is: {roman.Dexterity}"); cat.Meditate(); cat.Attack(roman); frank.Heal(roman); lee.Attack(cat); alex.Attack(frank); }
static void Main(string[] args) { Wizard wizard = new Wizard("Harry"); Ninja ninja = new Ninja("Naruto"); Samurai samurai = new Samurai("Jack"); Console.WriteLine($"Yer a Wizard, {wizard.Name}!"); Console.WriteLine($"{ninja.Name} is Ninja who wants to be Hokage."); Console.WriteLine($"Samurai {samurai.Name} must defeat the evil Aku!"); Console.WriteLine(wizard.Health); Console.WriteLine(ninja.Health); Console.WriteLine(samurai.Health); wizard.Attack(ninja); ninja.Attack(samurai); samurai.Attack(wizard); wizard.Heal(wizard); ninja.Steal(samurai); samurai.Meditate(); Console.WriteLine(wizard.Health); Console.WriteLine(ninja.Health); Console.WriteLine(samurai.Health); }
static void Main(string[] args) { Wizard JoeWiz = new Wizard("Joe Wizard"); Ninja JoeNin = new Ninja("Joe Ninja"); Samurai JoeSam = new Samurai("Joe Samurai"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); JoeWiz.Attack(JoeSam); System.Console.WriteLine("\n"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); JoeNin.Attack(JoeWiz); System.Console.WriteLine("\n"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); JoeWiz.Heal(JoeWiz); System.Console.WriteLine("\n"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); JoeSam.Meditate(); System.Console.WriteLine("\n"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); JoeNin.Steal(JoeSam); System.Console.WriteLine("\n"); System.Console.WriteLine($"{JoeWiz.Name}'s health is: {JoeWiz.Health}"); System.Console.WriteLine($"{JoeNin.Name}'s health is: {JoeNin.Health}"); System.Console.WriteLine($"{JoeSam.Name}'s health is: {JoeSam.Health}"); }
static void Main(string[] args) { Wizard Wizard1 = new Wizard("Gandalf"); Ninja Ninja1 = new Ninja("Denede"); Samurai Samurai1 = new Samurai("Axor"); Console.WriteLine($"{Wizard1.Name} attacked {Ninja1.Name} and {Ninja1.Name} has {Wizard1.Attack(Ninja1)} left"); Console.WriteLine($"{Ninja1.Name} attacked {Samurai1.Name} and {Samurai1.Name} has {Ninja1.Attack(Samurai1)} left"); Console.WriteLine(Samurai1.Meditate()); Console.WriteLine($"{Samurai1.Name} has {Samurai1.health} remaining"); }
static void Main(string[] args) { Human alfie = new Human("Alfie Peters"); alfie.Display(); Console.WriteLine("===================================="); Human kenny = new Human("Kenny Omega", 5, 7, 8, 100); kenny.Display(); alfie.Attack(kenny); Console.WriteLine("===================================="); kenny.Attack(alfie); Console.WriteLine("===================================="); Ninja tozawa = new Ninja("Akira Tozawa"); tozawa.Display(); Console.WriteLine("===================================="); Wizard merlin = new Wizard("Merlin"); merlin.Display(); Console.WriteLine("===================================="); Samurai elsam = new Samurai("El Samurai"); elsam.Display(); Console.WriteLine("===================================="); merlin.Attack(elsam); Console.WriteLine("===================================="); tozawa.Attack(alfie); Console.WriteLine("===================================="); elsam.Attack(kenny); Console.WriteLine("===================================="); merlin.Heal(alfie); Console.WriteLine("===================================="); elsam.Meditate(); Console.WriteLine("===================================="); tozawa.Steal(elsam); Console.WriteLine("===================================="); tozawa.Steal(alfie); Console.WriteLine("===================================="); }
static void Main(string[] args) { /////////////////////////// Human Tests ////////////////////////////// Human phil = new Human("Phil"); //System.Console.WriteLine(phil.Name); Human sam = new Human("Sam", 5, 7, 5, 120); //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength); phil.Attack(sam); //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength); /////////////////////////// Wizard Tests ////////////////////////////// Wizard gandolf = new Wizard("Gandolf"); //System.Console.WriteLine(gandolf.Dexterity); //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength); gandolf.Heal(); //System.Console.WriteLine(gandolf.Health); //Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength); gandolf.Fireball(sam); // Console.WriteLine("Character Name: " + sam.Name + " Health: " + sam.Health + " Intelligence: " + sam.Intelligence + " Dexterity: " + sam.Dexterity + " Strength: " + sam.Strength); /////////////////////////// Ninja Tests ////////////////////////////// Ninja dude = new Ninja("dude"); //Console.WriteLine("Character Name: " + dude.Name + " Health: " + dude.Health + " Intelligence: " + dude.Intelligence + " Dexterity: " + dude.Dexterity + " Strength: " + dude.Strength); dude.Steal(); dude.Get_Away(); //Console.WriteLine("Character Name: " + dude.Name + " Health: " + dude.Health + " Intelligence: " + dude.Intelligence + " Dexterity: " + dude.Dexterity + " Strength: " + dude.Strength); /////////////////////////// Samurai Tests ////////////////////////////// Samurai joe = new Samurai("joe"); Wizard test = new Wizard("test"); joe.Death_Blow(test); //System.Console.WriteLine(test.Health); phil.Attack(joe); //System.Console.WriteLine(joe.Health); joe.Meditate(); //System.Console.WriteLine(joe.Health); }
static void Main(string[] args) { Human me = new Human("Justin", 4, 5, 2, 120); Wizard wizard = new Wizard("Wizard"); Ninja ninja = new Ninja("Ninja"); Samurai samurai = new Samurai("Samurai"); me.Attack(wizard); wizard.Attack(me); wizard.Heal(me); ninja.Attack(me); ninja.Steal(me); samurai.Attack(me); samurai.Attack(me); wizard.Heal(me); me.Attack(ninja); me.Attack(samurai); samurai.Meditate(); samurai.Attack(ninja); samurai.Attack(ninja); samurai.Attack(ninja); samurai.Attack(ninja); }