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 wrap: on
line diff
--- a/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs	Sat Mar 26 21:02:55 2011 +0000
+++ b/api/Objects/UnitRequiresAtLeastNUnitsRequirement.cs	Sun Mar 27 19:09:27 2011 +0000
@@ -19,7 +19,7 @@
 			requiredTypes = new List<UnitType>(requiredUnitTypes);
 		}
 
-		public bool CanAddToArmy(Unit unit, Army army)
+		public bool CanAddToArmy(WarFoundryObject unit, Army army)
 		{
 			bool canAdd = true;