Example #1
0
        private void PopulateBaseList()
        {
            foreach (WarhammerUnit unit in TrainingGroundUnits.AllTrainingGroundUnits)
            {
                UnitMarch trainingGroundTroop = new UnitMarch()
                {
                    Unit     = unit,
                    Quantity = 0
                };

                March.Add(trainingGroundTroop);
            }

            foreach (WarhammerUnit unit in BestiaryUnits.AllBestiaryUnits)
            {
                UnitMarch bestiaryTroop = new UnitMarch()
                {
                    Unit     = unit,
                    Quantity = 0
                };

                March.Add(bestiaryTroop);
            }

            foreach (WarhammerUnit unit in DungeonUnits.AllDungeonUnits)
            {
                UnitMarch dungeonUnit = new UnitMarch()
                {
                    Unit     = unit,
                    Quantity = 0
                };

                March.Add(dungeonUnit);
            }
        }
Example #2
0
 public int SpecificUnitPower(UnitMarch unit)
 {
     return(UnitUtility.CalculateSpecificUnitPowerValue(unit, March));
 }