comparison api/Objects/Army.cs @ 8:613bc5eaac59

Re #9 - Make WarFoundry loading granular * Remove specific staged loading classes * Rework category loading for GameSystem and Race to make it use AddCategory(Category) method * Promote staged loading from Native Factory to all Factories level * Refactor XML Factory to use smaller methods Also removed some commented code that isn't used any more
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Jan 2009 19:24:13 +0000
parents 520818033bb6
children 306558904c2a
comparison
equal deleted inserted replaced
7:895c8a2378a1 8:613bc5eaac59
26 public event ObjectRemoveDelegate UnitRemoved; 26 public event ObjectRemoveDelegate UnitRemoved;
27 public event FailedUnitRequirementDelegate FailedRequirement; 27 public event FailedUnitRequirementDelegate FailedRequirement;
28 public event DoubleValChangedDelegate PointsValueChanged; 28 public event DoubleValChangedDelegate PointsValueChanged;
29 private DoubleValChangedDelegate PointsValueChangedMethod; 29 private DoubleValChangedDelegate PointsValueChangedMethod;
30 30
31 public Army(Race race, string armyName, int maxArmyPoints/*, AbstractNativeWarFoundryFactory factory*/) : this(race, armyName, maxArmyPoints, null/*, factory*/) 31 public Army(Race race, string armyName, int maxArmyPoints) : this(race, armyName, maxArmyPoints, null/*, factory*/)
32 { 32 {
33 } 33 }
34 34
35 public Army(Race race, string armyName, int maxArmyPoints, ZipFile file/*, AbstractNativeWarFoundryFactory factory*/) : base(armyName/*, factory*/) 35 public Army(Race race, string armyName, int maxArmyPoints, ZipFile file) : base(armyName)
36 { 36 {
37 armyRace = race; 37 armyRace = race;
38 Name = armyName; 38 Name = armyName;
39 maxPoints = maxArmyPoints; 39 maxPoints = maxArmyPoints;
40 PointsValueChangedMethod = new DoubleValChangedDelegate(PointsValueChangedHandler); 40 PointsValueChangedMethod = new DoubleValChangedDelegate(PointsValueChangedHandler);