comparison API/Objects/Mock/MockUnitType.cs @ 102:a3bc8174299f

Re #27: Define unit requirements * First test for first new style requirement * Update some of the Mock objects to add a few more required elements (mainly Category)
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Mar 2011 17:04:09 +0000
parents 19fc7a733064
children
comparison
equal deleted inserted replaced
101:08fd75eafb67 102:a3bc8174299f
7 7
8 namespace IBBoard.WarFoundry.API.Objects.Mock 8 namespace IBBoard.WarFoundry.API.Objects.Mock
9 { 9 {
10 public class MockUnitType : UnitType 10 public class MockUnitType : UnitType
11 { 11 {
12 public MockUnitType () : base("mockunittype", "Mock Unit Type", MockRace.GetMockRace()) 12 public MockUnitType () : this("mockunittype", "Mock Unit Type")
13 { 13 {
14 MainCategory = new MockCategory(); 14 }
15
16 public MockUnitType(string id, string name) : base(id, name, MockRace.GetMockRace())
17 {
18 MainCategory = MockCategory.GetCategory();
15 } 19 }
16 } 20 }
17 } 21 }