Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Requirements/UnitMinNumberReached.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 UnitMaxNumberRequirement. | |
8 /// </summary> | |
9 public class UnitMinNumberReached : FailedUnitRequirement | |
10 { | |
11 private UnitType type; | |
12 | |
13 public UnitMinNumberReached(UnitType unitType, UnitRequirementMinNumber requirement) : base(requirement) | |
14 { | |
15 type = unitType; | |
16 } | |
17 | |
18 public override string Description | |
19 { | |
20 get { return "The minimum number of units of type "+type.Name+" is not currently met"; } | |
21 } | |
22 } | |
23 } |