Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Objects/UnitEquipmentItem.cs @ 299:25c47b7ecc99
Re #99: added points name system to GameSystem
author | snowblizz |
---|---|
date | Mon, 24 Jan 2011 16:42:43 +0000 |
parents | 6fe0cb1bf74f |
children | 92d10b06ab0f |
comparison
equal
deleted
inserted
replaced
298:483b491d18f4 | 299:25c47b7ecc99 |
---|---|
4 | 4 |
5 using System; | 5 using System; |
6 using IBBoard.CustomMath; | 6 using IBBoard.CustomMath; |
7 using IBBoard.Limits; | 7 using IBBoard.Limits; |
8 using IBBoard.WarFoundry.API.Util; | 8 using IBBoard.WarFoundry.API.Util; |
9 //using IBBoard.WarFoundry.API.Objects; | |
9 | 10 |
10 namespace IBBoard.WarFoundry.API.Objects | 11 namespace IBBoard.WarFoundry.API.Objects |
11 { | 12 { |
12 /// <summary> | 13 /// <summary> |
13 /// Summary description for UnitEquipmentItem. | 14 /// Summary description for UnitEquipmentItem. |
22 private string[] mutexGroups; | 23 private string[] mutexGroups; |
23 private UnitType unitType; | 24 private UnitType unitType; |
24 private string slotName = ""; | 25 private string slotName = ""; |
25 private ILimit minLimit; | 26 private ILimit minLimit; |
26 private ILimit maxLimit; | 27 private ILimit maxLimit; |
27 | 28 public GameSystem CurrentGameSystem |
29 { | |
30 get { return WarFoundryCore.CurrentGameSystem; } | |
31 set { WarFoundryCore.CurrentGameSystem = value; } | |
32 } | |
28 public UnitEquipmentItem(EquipmentItem equipmentItem, UnitType equipmentFor) | 33 public UnitEquipmentItem(EquipmentItem equipmentItem, UnitType equipmentFor) |
29 : this(equipmentItem, equipmentFor, new string[0]) | 34 : this(equipmentItem, equipmentFor, new string[0]) |
30 { | 35 { |
31 //Do nothing extra | 36 //Do nothing extra |
32 } | 37 } |
197 get { return item; } | 202 get { return item; } |
198 } | 203 } |
199 | 204 |
200 public override string ToString() | 205 public override string ToString() |
201 { | 206 { |
202 return EquipmentItem.Name + " (" + Cost + "pts each)"; | 207 return CurrentGameSystem.setUnitEquipmentItemName(EquipmentItem.Name, Cost); |
203 } | 208 } |
204 | 209 |
205 public bool HasAlternatives() | 210 public bool HasAlternatives() |
206 { | 211 { |
207 if (MutexGroups.Length == 0) | 212 if (MutexGroups.Length == 0) |