comparison api/Objects/AbstractUnitEquipmentItemSelection.cs @ 96:ced5a18d9f52

Re #118: Allow equipment amounts of "ratio" equipment to be define as absolute or ratio amounts * Rework Unit's internals on how it stores equipment selection amounts * Fix logic error in "IsValidValue()" for absolute equipment selections * Fix calculation error when using "equip all" for absolute equipment selections * Make abstract equipment selection object set amount taken using property to trigger value checking Also: * Line ending cleanup in UnitEquipmentItem
author IBBoard <dev@ibboard.co.uk>
date Sun, 09 Aug 2009 11:09:12 +0000
parents 6c6cfe5594fc
children 95746083d037
comparison
equal deleted inserted replaced
95:6c6cfe5594fc 96:ced5a18d9f52
17 17
18 public AbstractUnitEquipmentItemSelection(Unit unit, UnitEquipmentItem item, double amount) 18 public AbstractUnitEquipmentItemSelection(Unit unit, UnitEquipmentItem item, double amount)
19 { 19 {
20 selectionForUnit = unit; 20 selectionForUnit = unit;
21 selectedItem = item; 21 selectedItem = item;
22 amountTaken = amount; 22 AmountTaken = amount;
23 } 23 }
24 24
25 public Unit EquipmentForUnit 25 public Unit EquipmentForUnit
26 { 26 {
27 get 27 get