Mercurial > repos > IBBoard.WarFoundry.API
comparison API/Objects/Requirement/UnitRequiresNoMoreThanNOfUnitTypeRequirement.cs @ 362:c19e61262400
Re #345: Add failure message to requirements
* Add implementation that lists only failed parts for "no more than" requirements
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 01 May 2011 15:39:05 +0000 |
parents | acd390dba551 |
children | 71fceea2725b |
comparison
equal
deleted
inserted
replaced
361:8781e53c59bb | 362:c19e61262400 |
---|---|
15 private UnitType requirementOnType; | 15 private UnitType requirementOnType; |
16 | 16 |
17 public UnitRequiresNoMoreThanNOfUnitTypeRequirement(UnitType requirementOn) : base() | 17 public UnitRequiresNoMoreThanNOfUnitTypeRequirement(UnitType requirementOn) : base() |
18 { | 18 { |
19 requirementOnType = requirementOn; | 19 requirementOnType = requirementOn; |
20 FailureStringPrefix = "Army contains " + requirementOn.Name + " and so cannot contain more than: "; | |
20 } | 21 } |
21 | 22 |
22 /// <summary> | 23 /// <summary> |
23 /// Checks whether the supplied WarFoundryObject can be added to the supplied army. | 24 /// Checks whether the supplied WarFoundryObject can be added to the supplied army. |
24 /// </summary> | 25 /// </summary> |