Ejemplo n.º 1
0
        public void CreateClassSettings(ActorClass actorclass)
        {
            if (actorclass != ActorClass.Invalid)
            {
                switch (actorclass)
                {
                case ActorClass.Barbarian:
                    Barbarian = new SettingBarbarian();
                    break;

                case ActorClass.Crusader:
                    Crusader = new SettingCrusader();
                    break;

                case ActorClass.DemonHunter:
                    DemonHunter = new SettingDemonHunter();
                    break;

                case ActorClass.Monk:
                    Monk = new SettingMonk();
                    break;

                case ActorClass.Witchdoctor:
                    WitchDoctor = new SettingWitchDoctor();
                    break;

                case ActorClass.Wizard:
                    Wizard = new SettingWizard();
                    break;
                }
            }
        }
Ejemplo n.º 2
0
 public void CreateClassSettings(ActorClass actorclass)
 {
     if (actorclass != ActorClass.Invalid)
     {
         switch (actorclass)
         {
             case ActorClass.Barbarian:
                 Barbarian = new SettingBarbarian();
                 break;
             case ActorClass.Crusader:
                 Crusader = new SettingCrusader();
                 break;
             case ActorClass.DemonHunter:
                 DemonHunter = new SettingDemonHunter();
                 break;
             case ActorClass.Monk:
                 Monk = new SettingMonk();
                 break;
             case ActorClass.Witchdoctor:
                 WitchDoctor = new SettingWitchDoctor();
                 break;
             case ActorClass.Wizard:
                 Wizard = new SettingWizard();
                 break;
         }
     }
 }