Esempio n. 1
0
        public static ClassArmor Upgrade(Hero owner, Armor armor)
        {
            ClassArmor classArmor = null;

            if (owner.heroClass == HeroClass.Warrior)
            {
                classArmor = new WarriorArmor();
            }
            if (owner.heroClass == HeroClass.Rogue)
            {
                classArmor = new RogueArmor();
            }
            if (owner.heroClass == HeroClass.Mage)
            {
                classArmor = new MageArmor();
            }
            if (owner.heroClass == HeroClass.Huntress)
            {
                classArmor = new HuntressArmor();
            }

            classArmor.Str = armor.Str;
            classArmor.Dr  = armor.Dr;

            classArmor.Inscribe(armor.glyph);

            return(classArmor);
        }
Esempio n. 2
0
 public WarriorArmorLeaper(WarriorArmor warriorArmor)
 {
     _warriorArmor = warriorArmor;
 }