示例#1
0
        public ArmorUnit IncreaseArmor(ArmorUnit armorUnit)
        {
            ArmorAmount += armorUnit.ArmorAmount;
            if (Name != null)
            {
                Name += $" plus {armorUnit.Name}";
            }
            else
            {
                Name = armorUnit.Name;
            }

            return(this);
        }
示例#2
0
 public BasicArmor(ArmorUnit armU) : base(armU)
 {
     basic = armU;
 }
 public ArmorDecorator(Armor newarmor, ArmorUnit arUnit)
     : base(arUnit)
 {
     this.armor = newarmor;
 }