changeset 299:25c47b7ecc99

Re #99: added points name system to GameSystem
author snowblizz
date Mon, 24 Jan 2011 16:42:43 +0000
parents 483b491d18f4
children c7b765f9575f
files api/Objects/UnitEquipmentItem.cs
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/UnitEquipmentItem.cs	Mon Jan 17 20:02:41 2011 +0000
     1.2 +++ b/api/Objects/UnitEquipmentItem.cs	Mon Jan 24 16:42:43 2011 +0000
     1.3 @@ -5,7 +5,8 @@
     1.4  using System;
     1.5  using IBBoard.CustomMath;
     1.6  using IBBoard.Limits;
     1.7 -using IBBoard.WarFoundry.API.Util;
     1.8 +using IBBoard.WarFoundry.API.Util;
     1.9 +//using IBBoard.WarFoundry.API.Objects;
    1.10  
    1.11  namespace IBBoard.WarFoundry.API.Objects
    1.12  {
    1.13 @@ -23,8 +24,12 @@
    1.14  		private UnitType unitType;
    1.15  		private string slotName = "";
    1.16  		private ILimit minLimit;
    1.17 -		private ILimit maxLimit;
    1.18 -
    1.19 +		private ILimit maxLimit;
    1.20 +        public GameSystem CurrentGameSystem
    1.21 +        {
    1.22 +            get { return WarFoundryCore.CurrentGameSystem; }
    1.23 +            set { WarFoundryCore.CurrentGameSystem = value; }
    1.24 +        }
    1.25  		public UnitEquipmentItem(EquipmentItem equipmentItem, UnitType equipmentFor)
    1.26  			: this(equipmentItem, equipmentFor, new string[0])
    1.27  		{
    1.28 @@ -199,7 +204,7 @@
    1.29  
    1.30  		public override string ToString()
    1.31  		{
    1.32 -			return EquipmentItem.Name + " (" + Cost + "pts each)";
    1.33 +            return CurrentGameSystem.setUnitEquipmentItemName(EquipmentItem.Name, Cost);
    1.34  		}
    1.35  
    1.36  		public bool HasAlternatives()