diff API/Objects/Army.cs @ 348:d34ae0057a39

Re #27: Unit requirements * Obsolete methods using the old requirements system * Switch to new IRequirement objects
author IBBoard <dev@ibboard.co.uk>
date Sat, 09 Apr 2011 16:01:02 +0000
parents 3c4a6403a88c
children 65fccdd51aec
line wrap: on
line diff
--- a/API/Objects/Army.cs	Sat Apr 09 15:51:39 2011 +0000
+++ b/API/Objects/Army.cs	Sat Apr 09 16:01:02 2011 +0000
@@ -227,21 +227,25 @@
 			}
 		}
 
+		[Obsolete]
 		public List<FailedUnitRequirement> CanAddUnit(Unit unit)
 		{
 			return CanAddUnitType(unit.UnitType);
 		}
 
+		[Obsolete]
 		public List<FailedUnitRequirement> CanAddUnitType(UnitType unitType)
 		{
 			return unitType.CanAddToArmy(this);
 		}
 
+		[Obsolete]
 		public List<FailedUnitRequirement> CanRemoveUnit(Unit unit)
 		{
 			return CanRemoveUnitType(unit.UnitType);
 		}
 
+		[Obsolete]
 		public List<FailedUnitRequirement> CanRemoveUnitType(UnitType unitType)
 		{
 			return unitType.CanRemoveFromArmy(this);