Ejemplo n.º 1
0
 public void AddShield(Shield shield)
 {
     if (!shields.ContainsKey(shield.Name))
     {
         shields.Add(shield.Name, shield);
     }
 }
Ejemplo n.º 2
0
        public override object Clone()
        {
            string[] allowedClasses = new string[AllowableClasses.Count];

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

            Shield shield = new Shield(Name, Type, Price, Weight, DefenceValue, DefenceModifier, allowedClasses);

            return shield;
        }