comparison API/Objects/Requirement/RequiresAtLeastNUnitsRequirement.cs @ 347:44a6539fadf9

Re #27: Unit requirements * Add base interface for all requirements and extend it in existing requirements * Add stub method for getting requirements of race (UnitTypes need to be able to add them first before testing goes further)
author IBBoard <dev@ibboard.co.uk>
date Sat, 09 Apr 2011 15:51:39 +0000
parents 008537acf244
children 6c0404277cad
comparison
equal deleted inserted replaced
346:b0ba1d25f51e 347:44a6539fadf9
8 namespace IBBoard.WarFoundry.API.Objects.Requirement 8 namespace IBBoard.WarFoundry.API.Objects.Requirement
9 { 9 {
10 /// <summary> 10 /// <summary>
11 /// A requirement where a WarFoundryObject requires at least N units of one or more unit types before any number of that object can be taken in an army. 11 /// A requirement where a WarFoundryObject requires at least N units of one or more unit types before any number of that object can be taken in an army.
12 /// </summary> 12 /// </summary>
13 public class RequiresAtLeastNUnitsRequirement 13 public class RequiresAtLeastNUnitsRequirement : IRequirement
14 { 14 {
15 private List<UnitCountRequirementData> requiredTypes; 15 private List<UnitCountRequirementData> requiredTypes;
16 16
17 public RequiresAtLeastNUnitsRequirement(params UnitType[] requiredUnitTypes) 17 public RequiresAtLeastNUnitsRequirement(params UnitType[] requiredUnitTypes)
18 { 18 {