コード例 #1
0
        static void Main(string[] args)
        {
            Intro();
            Console.ReadLine();
            Console.Clear();

            //BaseDragons
            Dragon Xedas  = new Dragon("Xedas");
            Dragon Eryzia = new Dragon("Eryzia");

            TellTheStory(Xedas);

            Console.ReadLine();
            Console.Clear();

            //Air dragon
            Xedas.AddExtension("Air", new AirElementalExtension(Xedas));

            TellTheStory(Xedas);

            Console.ReadLine();
            Console.Clear();

            //Fire dragon
            Eryzia.AddExtension("Fire", new FireElementExtension(Eryzia));

            TellTheStory(Eryzia);

            Console.ReadLine();
            Console.Clear();

            //Air Fire Dragon
            Xedas.AddExtension("Fire", new FireElementExtension(Xedas));

            TellTheStory(Xedas);

            Console.ReadLine();
            Console.Clear();

            //Delete role
            Console.WriteLine("But not always was he successful... Thus once he has lost his Air element...");
            Console.ReadLine();
            Console.Clear();
            Xedas.DropExtension("Air");

            TellTheStory(Xedas);

            Console.ReadLine();
            Console.Clear();
        }