示例#1
0
        static void Main(string[] args)
        {
            Storm storm1 = new Storm("wind", false, "Zul'rajas");

            Console.WriteLine(storm1.Announce());

            Pupil pupil1 = new Pupil("Mezil-kree");

            Storm storm2 = pupil1.CastWindStorm();

            Console.WriteLine(storm2.Announce());

            Mage mage1 = new Mage("Gul’dan");

            Storm storm3 = mage1.CastWindStorm();
            Storm storm4 = mage1.CastRainStorm();

            Console.WriteLine(storm3.Announce());
            Console.WriteLine(storm4.Announce());

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

            Storm storm5 = archmage1.CastWindStorm();
            Storm storm6 = archmage1.CastRainStorm();
            Storm storm7 = archmage1.CastLightingStorm();

            Console.WriteLine(storm5.Announce());
            Console.WriteLine(storm6.Announce());
            Console.WriteLine(storm7.Announce());


            Console.ReadLine();
        }
示例#2
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());
            }
        }
示例#3
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());
        }