Changeset 143
- Timestamp:
- 06/27/09 13:59:49 (14 months ago)
- Location:
- IBBoard.WarFoundry.API/trunk/api/Objects
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
IBBoard.WarFoundry.API/trunk/api/Objects/Army.cs
r95 r143 161 161 public void AddUnit(Unit unit) 162 162 { 163 List<FailedUnitRequirement> failedReqs = CanAddUnit(unit);164 163 unit.Army = this; 165 164 ArmyCategory armyCat = GetCategory(unit.UnitType.MainCategory); 166 165 armyCat.AddUnit(unit); 167 OnUnitAdded(unit, failedReqs);168 166 } 169 167 … … 172 170 List<FailedUnitRequirement> failedReqs = CanRemoveUnit(unit); 173 171 unit.Army = null; 174 ArmyCategory armyCat = GetCategory(unit.UnitType.MainCategory); 175 armyCat.RemoveUnit(unit); 172 unit.Category.RemoveUnit(unit); 176 173 OnUnitRemoved(unit, failedReqs); 177 174 } -
IBBoard.WarFoundry.API/trunk/api/Objects/ArmyCategory.cs
r94 r143 67 67 internal void AddUnit(Unit unit) 68 68 { 69 List<FailedUnitRequirement> failedReqs = ParentArmy.CanAddUnit(unit); 69 70 units.Add(unit); 70 71 unit.Category = this; -
IBBoard.WarFoundry.API/trunk/api/Objects/Stat.cs
r29 r143 27 27 } 28 28 29 public string ParentSlotName 30 { 31 get { return ParentSlot.Name; } 32 } 33 29 34 public string SlotValueString 30 35 {
WarFoundry - Development