Mercurial > repos > IBBoard.WarFoundry.API
comparison api/Requirements/UnitRequirementItem.cs @ 0:520818033bb6
Initial commit of WarFoundry code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 19 Dec 2008 15:57:51 +0000 |
parents | |
children | 306558904c2a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:520818033bb6 |
---|---|
1 using System; | |
2 using IBBoard.WarFoundry.API.Objects; | |
3 | |
4 namespace IBBoard.WarFoundry.API.Requirements | |
5 { | |
6 /// <summary> | |
7 /// Summary description for UnitRequirementItem. | |
8 /// </summary> | |
9 public class UnitRequirementItem | |
10 { | |
11 private UnitType type; | |
12 private int requiredNum; | |
13 | |
14 public UnitRequirementItem(UnitType unitType, int reqNumber) | |
15 { | |
16 type = unitType; | |
17 requiredNum = reqNumber; | |
18 } | |
19 | |
20 public UnitRequirementItem(UnitType type) : this(type, 1) { } | |
21 | |
22 public UnitType UnitType | |
23 { | |
24 get { return type; } | |
25 } | |
26 | |
27 public int Amount | |
28 { | |
29 get { return requiredNum; } | |
30 } | |
31 } | |
32 } |