static void Main(string[] args)
        {
            Storm[] storms      = new Storm[10];
            int     stormsIndex = 0;

            Pupil p = new Pupil("Mezil-Kree", "Icecrown");

            storms[stormsIndex] = p.CastWindStorm();
            stormsIndex++;

            Mage m = new Mage("Gul'dan", "Draenor");

            Console.WriteLine(m.Origin);

            storms[stormsIndex] = m.CastRainStorm();
            stormsIndex++;

            Archmage a = new Archmage("Nielas Aran");

            storms[stormsIndex] = a.CastWindStorm();
            stormsIndex++;

            storms[stormsIndex] = a.CastRainStorm();
            stormsIndex++;

            storms[stormsIndex] = a.CastLightningStorm();
            stormsIndex++;

            for (int i = 0; i < stormsIndex; i++)
            {
                // storms[0]
                Console.WriteLine(storms[i].Announce());
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Storm[] storms      = new Storm[10];
            int     stormsIndex = 0;

            Pupil p1 = new Pupil("Mezil-kree", "Icecrown");

            storms[stormsIndex] = p1.CastWindStorm();
            stormsIndex++;


            Mage m1 = new Mage("Gul'dan", "Draenor");

            storms[stormsIndex] = m1.CastRainStorm();
            stormsIndex++;

            Archmage a1 = new Archmage("Nielas Aran", "Stormwind");

            storms[stormsIndex] = a1.CastWindStorm();
            stormsIndex++;
            storms[stormsIndex] = a1.CastRainStorm();
            stormsIndex++;
            storms[stormsIndex] = a1.CastLightningStorm();
            stormsIndex++;

            for (int i = 0; i < stormsIndex; i++)
            {
                Console.WriteLine(storms[i].Announce());
            }
        }
        static void Main(string[] args)
        {
            Pupil    p              = new Pupil("Mezil-kree");
            Mage     m              = new Mage("Gul'Dan");
            Archmage am             = new Archmage("Nielas Aran");
            Storm    rainStorm      = m.CastRainStorm();
            Storm    windStorm      = p.CastWindStorm();
            Storm    lightningStorm = am.CastLightningStorm();

            Console.WriteLine(windStorm.Announce());
            Console.WriteLine(rainStorm.Announce());
            Console.WriteLine(lightningStorm.Announce());
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Magical Inheritance. A place where magical beings do some crazy shit.");
            Console.WriteLine("Are you ready to rumble? Enter yes or no.");
            string userAnswer = Console.ReadLine();

            if (userAnswer == "no")
            {
                Console.WriteLine("Your presense is not needed plebe! Go back to the village from whenst you came!");
            }
            else
            {
                Console.WriteLine("Are you a Mage, Archmage, or Pupil? Please enter one.");
                string userTypeChoice = Console.ReadLine();


                //  case 1:
                //  Console.WriteLine("Case 1");
                //  break;
                //creating a new Pupil class which sets the title
                Pupil p = new Pupil("Mezil-kree");

                //creating a new Storm class and giving it the value of a pupil (p) with the parameters that CastWindStorm holds in the Pupil class

                Storm windStorm = p.CastWindStorm();

                //announcing the windstorm utilizing the parameter values from CastWindStorm
                Console.WriteLine(windStorm.Announce());

                Mage  m             = new Mage("Gul'dan");
                Storm mageWindStorm = m.CastWindStorm();
                Storm rainStorm     = m.CastRainStorm();
                Console.WriteLine(mageWindStorm.Announce());
                Console.WriteLine(rainStorm.Announce());

                Archmage am             = new Archmage("Nielas Aran");
                Storm    amRainStorm    = am.CastRainStorm();
                Storm    lightningStorm = am.CastLightningStorm();
                Storm    amWindStorm    = am.CastWindStorm();
                Console.WriteLine(amWindStorm.Announce());
                Console.WriteLine(amRainStorm.Announce());
                Console.WriteLine(lightningStorm.Announce());
            }
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            Storm s = new Storm("Wind", false, "XanThanos");

            Console.WriteLine(s.Announce());

            Pupil p         = new Pupil("Raegar");
            Storm windStorm = p.CastWindStorm();

            Console.WriteLine(windStorm.Announce());

            Mage  m         = new Mage("Guldan");
            Storm rainStorm = m.CastRainStorm();

            Console.WriteLine(rainStorm.Announce());

            Archmage a                  = new Archmage("Gandalf");
            Storm    archRainStorm      = a.CastRainStorm();
            Storm    archLightningStorm = a.CastLightningStorm();

            Console.WriteLine(archRainStorm.Announce);
            Console.WriteLine(archLightningStorm.Announce);
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            Storm wind = new Storm("wind", false, "Zul'rajas");

            Console.WriteLine(wind.Announce());

            Pupil p      = new Pupil("Mezil-kree");
            Storm pSpell = p.CastWindStorm();

            Console.WriteLine(pSpell.Announce());

            Mage  m      = new Mage("Gul'dan");
            Storm mSpell = m.CastRainStorm();

            Console.WriteLine(mSpell.Announce());

            Archmage a       = new Archmage("Nielas Aran");
            Storm    aSpell  = a.CastRainStorm();
            Storm    abSpell = a.CastLightningStorm();

            Console.WriteLine(aSpell.Announce());
            Console.WriteLine(abSpell.Announce());
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            Pupil pupil = new Pupil("Mezil-Kree");
            Storm storm = pupil.CastWindStorm();

            Console.WriteLine(storm.Announce());

            Mage  mage          = new Mage("Gul'dan");
            Storm mageRainStorm = mage.CastRainStorm();

            Console.WriteLine(mageRainStorm.Announce());
            Storm mageWindStorm = mage.CastWindStorm();

            Console.WriteLine(mageWindStorm.Announce());

            Archmage archmage          = new Archmage("Nielas Aran");
            Storm    archmageRainStorm = archmage.CastRainStorm();

            Console.WriteLine(archmageRainStorm.Announce());
            Storm archmageLightningStorm = archmage.CastLightningStorm();

            Console.WriteLine(archmageLightningStorm.Announce());
        }
Esempio n. 8
0
        static void Main(string[] args)
        {
            Storm storm = new Storm("wind", false, "Zul'rajas");

            storm.Announce();

            Pupil pupil       = new Pupil("Mezil-kree");
            var   pupilAttack = pupil.CastWindStorm();

            pupilAttack.Announce();

            Mage mage       = new Mage("Gul'dan");
            var  mageAttack = mage.CastRainStorm();

            mageAttack.Announce();

            Archmage archmage        = new Archmage("Nielas Aran");
            var      rainAttack      = archmage.CastRainStorm();
            var      lightningAttack = archmage.CastLightningStorm();

            rainAttack.Announce();
            lightningAttack.Announce();
        }