Exemplo n.º 1
0
        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)
        {
            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}");
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            Human John = new Human("John");

            Console.WriteLine(John.health);
            Human Juan = new Human("Juan", 75, 10, 10, 75);

            John.attack(Juan);
            Wizard joe  = new Wizard("joe");
            Wizard jack = new Wizard("jack");
            Ninja  Leo  = new Ninja("Leo");

            // Leo.Steal(John);
            // Leo.Get_Away();
            //Console.WriteLine(Leo.name + "'s health is now, " + Leo.health);
            //Console.WriteLine("A ninja has a dexterity of: "+Leo.dexterity + " and health is: "+ Leo.health);
            // Console.WriteLine("\n" + joe.health + " dexterity: " + joe.dexterity);
            //Console.WriteLine("Joe's intelligence is " + joe.intelligence);
            //joe.Heal();
            //joe.attack(Juan);
            // Console.WriteLine("Johns health b4 wizards attack: "+ John.health);
            joe.Fireball(John);
            Console.WriteLine("Johns health after wizard attack " + John.health);

            // Console.WriteLine("Jacks health b4 wizards attack: "+ jack.health);
            //joe.Fireball(jack);
            //Console.WriteLine($"Jacks health after {joe.name} the wizard attacked is {jack.health}");
            Samurai Billy = new Samurai("Billy the Samurai");
            Samurai Chuck = new Samurai("Chuck the Samurai");
            Samurai Dave  = new Samurai("Dave the Samurai");

            // Console.WriteLine("The Samurai's health is: " + Billy.health + ". His intelligence is: " + Billy.intelligence);
            // Billy.Mediatate();
            Billy.Death_Blow(joe);
            Billy.Death_Blow(John);
            Billy.Death_Blow(Billy);
            // int count = Samurai.How_Many();
            // Console.WriteLine(count);
            // Samurai.How_Many();
            Billy.Death_Blow(Chuck);
            // Billy.Mediatate();
            string InputLine = Console.ReadLine();

            Console.WriteLine(InputLine);
        }