# HG changeset patch # User IBBoard # Date 1256327754 0 # Node ID 948e90426a8d52d9d4b198db3af906b5810288a2 # Parent 22429737cd77849ccf0ce7ca20f4c2cef54731ad Re #198: Add slots with counts to units * Remove unused Slot objects diff -r 22429737cd77 -r 948e90426a8d IBBoard.WarFoundry.API.csproj --- a/IBBoard.WarFoundry.API.csproj Thu Oct 22 19:51:42 2009 +0000 +++ b/IBBoard.WarFoundry.API.csproj Fri Oct 23 19:55:54 2009 +0000 @@ -89,9 +89,6 @@ - - - @@ -105,7 +102,6 @@ - diff -r 22429737cd77 -r 948e90426a8d api/Objects/AbstractUnitEquipmentSlot.cs --- a/api/Objects/AbstractUnitEquipmentSlot.cs Thu Oct 22 19:51:42 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -// This file (UnitEquipmentSlot.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2009 IBBoard. -// -// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. - -using System; -using System.Collections.Generic; -using System.Text; - -namespace IBBoard.WarFoundry.API.Objects -{ - /// - /// An abstract base implementation of an equipment slot for a unit - /// - public abstract class AbstractUnitEquipmentSlot - { - private string name; - private double limit; - - public AbstractUnitEquipmentSlot(string slotName, double slotLimit) - { - name = slotName; - limit = slotLimit; - } - - public string Name - { - get - { - return name; - } - } - - public double Limit - { - get - { - return limit; - } - } - } -} diff -r 22429737cd77 -r 948e90426a8d api/Objects/DefaultUnitEquipmentSlot.cs --- a/api/Objects/DefaultUnitEquipmentSlot.cs Thu Oct 22 19:51:42 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -// This file (DefaultUnitEquipmentSlot.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard. -// -// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. - -using System; -using System.Collections.Generic; -using System.Text; - -namespace IBBoard.WarFoundry.API.Objects -{ - public class DefaultUnitEquipmentSlot : AbstractUnitEquipmentSlot - { - public DefaultUnitEquipmentSlot() : base("", WarFoundryCore.INFINITY) - { - } - } -} diff -r 22429737cd77 -r 948e90426a8d api/Objects/NumericLimitUnitEquipmentSlot.cs --- a/api/Objects/NumericLimitUnitEquipmentSlot.cs Thu Oct 22 19:51:42 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -// This file (NumericLimitUnitEquipmentSlot.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard. -// -// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. - -using System; -using System.Collections.Generic; -using System.Text; - -namespace IBBoard.WarFoundry.API.Objects -{ - public class NumericLimitUnitEquipmentSlot : AbstractUnitEquipmentSlot - { - public NumericLimitUnitEquipmentSlot(string slotName, int ratioLimit) - : base("", ratioLimit) - { - } - } -} diff -r 22429737cd77 -r 948e90426a8d api/Objects/RatioLimitUnitEquipmentSlot.cs --- a/api/Objects/RatioLimitUnitEquipmentSlot.cs Thu Oct 22 19:51:42 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -// This file (RatioLimitUnitEquipmentSlot.cs) is a part of the IBBoard.WarFoundry.API project and is copyright 2007, 2008, 2009 IBBoard. -// -// The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. - -using System; -using IBBoard.CustomMath; - -namespace IBBoard.WarFoundry.API.Objects -{ - public class RatioLimitUnitEquipmentSlot : AbstractUnitEquipmentSlot - { - private RoundType roundDir; - - public RatioLimitUnitEquipmentSlot(string slotName, double ratioLimit, RoundType roundDirection) : base(slotName, ratioLimit) - { - roundDir = roundDirection; - } - - public RoundType RoundType - { - get { return roundDir; } - } - } -}