Example #1
0
 public void AddArmour(Armour armour)
 {
     if (!ContainsArmour(armour.Name))
     {
         armours.Add(armour.Name, armour);
     }
 }
Example #2
0
        public override object Clone()
        {
            string[] allowedClasses = new string[AllowableClasses.Count];

            for (int i = 0; i < AllowableClasses.Count; i++)
                allowedClasses[i] = AllowableClasses[i];

            Armour armour = new Armour(Name, Type, Price, Weight, ArmourLocation, DefenceValue, DefenceModifier, allowedClasses);

            return armour;
        }