annotate API/Objects/Mock/MockUnitEquipmentItem.cs @ 14:19fc7a733064

Re #198: Add slots with counts to units * Start testing unit * Add more mock objects * Make MockUnitType define its category
author IBBoard <dev@ibboard.co.uk>
date Fri, 23 Oct 2009 19:57:03 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (MockUnitEquipmentItem.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // 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.
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 namespace IBBoard.WarFoundry.API.Objects.Mock
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 {
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 public class MockUnitEquipmentItem : UnitEquipmentItem
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 {
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public MockUnitEquipmentItem () : base(new MockEquipmentItem(), new MockUnitType())
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 MaxPercentage = 100; //TODO: This seems odd - maybe IsRatio should be "!=0"
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 MaxNumber = WarFoundryCore.INFINITY;
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 }
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 }
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 }