Mercurial > repos > IBBoard.WarFoundry.API
comparison API/Objects/Requirement/RequiresNoMoreThanNOfUnitTypeRequirement.cs @ 343:acd390dba551
Re #27: Unit requirements
* First draft of "Unit requires no more than X" requirement
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 06 Apr 2011 20:05:46 +0000 |
parents | 407757e597f9 |
children | 8585dfacac3b |
comparison
equal
deleted
inserted
replaced
342:407757e597f9 | 343:acd390dba551 |
---|---|
34 /// The object that we want to add. This may be involved in the check, or it may not affect the evaluation of the requirement | 34 /// The object that we want to add. This may be involved in the check, or it may not affect the evaluation of the requirement |
35 /// </param> | 35 /// </param> |
36 /// <param name='toArmy'> | 36 /// <param name='toArmy'> |
37 /// The army to add the object to. | 37 /// The army to add the object to. |
38 /// </param> | 38 /// </param> |
39 public Validation AllowsAdding(WarFoundryObject wfObject, Army toArmy) | 39 public virtual Validation AllowsAdding(WarFoundryObject wfObject, Army toArmy) |
40 { | 40 { |
41 Validation canAdd = Validation.Passed; | 41 Validation canAdd = Validation.Passed; |
42 | 42 |
43 foreach (UnitCountRequirementData limit in limitedTypes) | 43 foreach (UnitCountRequirementData limit in limitedTypes) |
44 { | 44 { |