Mercurial > repos > snowblizz-super-API-ideas
changeset 177:948e90426a8d
Re #198: Add slots with counts to units
* Remove unused Slot objects
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 23 Oct 2009 19:55:54 +0000 |
parents | 22429737cd77 |
children | ca2cd24f6872 |
files | IBBoard.WarFoundry.API.csproj api/Objects/AbstractUnitEquipmentSlot.cs api/Objects/DefaultUnitEquipmentSlot.cs api/Objects/NumericLimitUnitEquipmentSlot.cs api/Objects/RatioLimitUnitEquipmentSlot.cs |
diffstat | 5 files changed, 0 insertions(+), 104 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ <Compile Include="api\Objects\Army.cs" /> <Compile Include="api\Objects\ArmyCategory.cs" /> <Compile Include="api\Objects\Category.cs" /> - <Compile Include="api\Objects\RatioLimitUnitEquipmentSlot.cs" /> - <Compile Include="api\Objects\NumericLimitUnitEquipmentSlot.cs" /> - <Compile Include="api\Objects\DefaultUnitEquipmentSlot.cs" /> <Compile Include="api\Objects\DuplicateItemException.cs" /> <Compile Include="api\Objects\EquipmentItem.cs" /> <Compile Include="api\Objects\GameSystem.cs" /> @@ -105,7 +102,6 @@ <Compile Include="api\Objects\SystemStats.cs" /> <Compile Include="api\Objects\Unit.cs" /> <Compile Include="api\Objects\UnitEquipmentItem.cs" /> - <Compile Include="api\Objects\AbstractUnitEquipmentSlot.cs" /> <Compile Include="api\Objects\UnitType.cs" /> <Compile Include="api\Objects\WarFoundryObject.cs" /> <Compile Include="api\Objects\WarFoundryStagedLoadingObject.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 -{ - /// <summary> - /// An abstract base implementation of an equipment slot for a unit - /// </summary> - 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; - } - } - } -}
--- 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) - { - } - } -}
--- 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) - { - } - } -}
--- 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; } - } - } -}