comparison API/Objects/AbstractUnitEquipmentItemSelection.cs @ 431:c8002429ab45

Re #366: Rewrite equipment handling and limits * Remove code added for #356 and work without limiting * Move "Calculate number taken" method to util class
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 Nov 2011 20:35:15 +0000
parents 7179c585d31d
children
comparison
equal deleted inserted replaced
430:7e95b880f9cc 431:c8002429ab45
83 return NumberTaken * EquipmentItem.Cost; 83 return NumberTaken * EquipmentItem.Cost;
84 } 84 }
85 } 85 }
86 86
87 /// <summary> 87 /// <summary>
88 /// Gets the number taken as a whole number of times the item was taken. This number may be altered by the limits 88 /// Gets the number taken as a whole number of times the item was taken. This number will not be altered by the limits
89 /// placed on the equipment item (e.g. reduced if there is a lower maximum limit) 89 /// placed on the equipment item, which are instead used to raise validation warnings.
90 /// </summary> 90 /// </summary>
91 /// <value> 91 /// <value>
92 /// The number of times the item was taken, modified by any limits. 92 /// The number of times the item was taken.
93 /// </value> 93 /// </value>
94 public abstract int NumberTaken 94 public abstract int NumberTaken
95 { 95 {
96 get; 96 get;
97 } 97 }
98
99 /// <summary>
100 /// Gets the raw amount taken as a whole number of times the item was taken.
101 /// </summary>
102 /// <value>
103 /// The unmodified number of times the item was taken.
104 /// </value>
105 public abstract int RawNumberTaken { get; }
106 } 98 }
107 } 99 }