diff api/Objects/EquipmentItem.cs @ 263:7933d852181e

Re #289: Double-check extensibility where sets of values are allowed * Remove ArmourType and all usage as it needs rebuilding from scratch to be extensible and isn't widely used yet
author IBBoard <dev@ibboard.co.uk>
date Sat, 05 Jun 2010 12:43:28 +0000
parents 2f3cafb69799
children 886d28c1b6e5
line wrap: on
line diff
--- a/api/Objects/EquipmentItem.cs	Mon May 31 15:33:41 2010 +0000
+++ b/api/Objects/EquipmentItem.cs	Sat Jun 05 12:43:28 2010 +0000
@@ -14,26 +14,12 @@
 	{
 		private double cost;
 		private string description;
-		private ArmourType armourType;
 		private Race equipForRace;
 		
 		public EquipmentItem(string id, string name, Race race) : base(id, name)
 		{
 			equipForRace = race;
 			description = "";
-			armourType = ArmourType.None;
-		}
-
-		[Obsolete("Use the three argument constructor and the appropriate 'set' methods")]
-		public EquipmentItem(string id, string name, double itemCost, double minimum, double maximum, ArmourType itemArmourType, Race race) : this(id, name, race)
-		{
-			ItemArmourType = itemArmourType;
-		}
-
-		public ArmourType ItemArmourType
-		{
-			get { return armourType; }
-			set { armourType = value; }
 		}
 
 		public double Cost
@@ -61,12 +47,7 @@
 
 		public bool CanBeUsedWithItem(EquipmentItem item)
 		{
-			return CanBeUsedWithArmourType(item.ItemArmourType);
-		}
-
-		public bool CanBeUsedWithArmourType(ArmourType otherItemType)
-		{
-			return (this.ItemArmourType & otherItemType) == 0;
+			return true;
 		}
 	}
 }