Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff api/Objects/EquipmentItem.cs @ 43:d0812d7de39d
Re #49 - Resolve namespace issues
* Fix up some XPath queries
* Remove one unnecessary namespace
* Check local name of elements, not name (which is qualified)
* Add method to get double value from an attribute including handling INF
* Remove min/max for equipment item as it is now moved to the UnitType's reference to the equipment item
*
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Mar 2009 17:05:01 +0000 |
parents | 548cfc776f54 |
children | 3a90f70dac73 |
line wrap: on
line diff
--- a/api/Objects/EquipmentItem.cs Sun Mar 22 16:37:43 2009 +0000 +++ b/api/Objects/EquipmentItem.cs Sun Mar 22 17:05:01 2009 +0000 @@ -12,11 +12,11 @@ /// </summary> public class EquipmentItem : WarFoundryObject { - private float cost, min, max; + private double cost, min, max; private ArmourType armourType; private Race equipForRace; - public EquipmentItem(string id, string name, float itemCost, float minimum, float maximum, ArmourType itemArmourType, Race race) : base(id, name) + public EquipmentItem(string id, string name, double itemCost, double minimum, double maximum, ArmourType itemArmourType, Race race) : base(id, name) { cost = itemCost; min = minimum; @@ -30,7 +30,7 @@ get { return ((MaxNumber < 1 && MaxNumber > 0) || (MaxNumber == 1 && MinNumber > 0)); } } - public float MinNumber + public double MinNumber { get { return min; } set @@ -44,7 +44,7 @@ } } - public float MaxNumber + public double MaxNumber { get { return max; } set @@ -64,7 +64,7 @@ set { armourType = value; } } - public float Cost + public double Cost { get { return cost; } set { cost = value; }