changeset 162:624422e91a1c

Re #192: Improve "clean coding" practice * Make Equipment util class public * Remove use of obsolete method
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Oct 2009 15:52:15 +0000
parents 81abc04b3dbe
children 395c8042dc03
files api/Objects/Unit.cs api/Util/UnitEquipmentUtil.cs
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/Unit.cs	Sun Oct 04 12:00:16 2009 +0000
     1.2 +++ b/api/Objects/Unit.cs	Sun Oct 04 15:52:15 2009 +0000
     1.3 @@ -434,7 +434,7 @@
     1.4  			}
     1.5  			else
     1.6  			{
     1.7 -				canEquip = GetBlockingEquipmentItems(item).Count == 0;
     1.8 +				canEquip = UnitEquipmentUtil.GetBlockingEquipmentItems(this, item).Count == 0;
     1.9  			}
    1.10  
    1.11  			return canEquip;
     2.1 --- a/api/Util/UnitEquipmentUtil.cs	Sun Oct 04 12:00:16 2009 +0000
     2.2 +++ b/api/Util/UnitEquipmentUtil.cs	Sun Oct 04 15:52:15 2009 +0000
     2.3 @@ -9,7 +9,7 @@
     2.4  
     2.5  namespace IBBoard.WarFoundry.API.Util
     2.6  {
     2.7 -	class UnitEquipmentUtil
     2.8 +	public class UnitEquipmentUtil
     2.9  	{
    2.10  		/// <summary>
    2.11  		/// Gets an array of allowed <see cref="UnitEquipmentItem"/>s based on the current selections of the unit, taking in to account Mutex groups and other limits.