changeset 328:f8471453c3cb

Re #27: Define unit requirements * Change method definition to be able to handle both Unit and UnitType
author IBBoard <dev@ibboard.co.uk>
date Sun, 27 Mar 2011 19:09:27 +0000
parents 1c32b8a1600e
children a5b34ca10d80
files api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs	Sat Mar 26 21:02:55 2011 +0000
     1.2 +++ b/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs	Sun Mar 27 19:09:27 2011 +0000
     1.3 @@ -19,7 +19,7 @@
     1.4  			requiredTypes = new List<UnitType>(requiredUnitTypes);
     1.5  		}
     1.6  
     1.7 -		public bool CanAddToArmy(Unit unit, Army army)
     1.8 +		public bool CanAddToArmy(WarFoundryObject unit, Army army)
     1.9  		{
    1.10  			bool canAdd = true;
    1.11