changeset 307:afa7a5dd0eea

Re #99: Define "points" values in GameSystem * Use short-hand method for defining simple properties to reduce code
author IBBoard <dev@ibboard.co.uk>
date Sun, 13 Feb 2011 20:55:13 +0000
parents 886d28c1b6e5
children e1438fb9024c
files api/Objects/GameSystem.cs
diffstat 1 files changed, 4 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/api/Objects/GameSystem.cs	Sun Feb 13 16:24:12 2011 +0000
     1.2 +++ b/api/Objects/GameSystem.cs	Sun Feb 13 20:55:13 2011 +0000
     1.3 @@ -19,10 +19,6 @@
     1.4  		private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>();
     1.5  		private string defaultStats;
     1.6  		private int defaultArmySize;
     1.7 -		private string systemPtsAbbrevSingle;
     1.8 -		private string systemPtsAbbrevPlural;
     1.9 -		private string systemPtsNameSingle;
    1.10 -		private string systemPtsNamePlural;
    1.11  
    1.12  		public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory)
    1.13  		{
    1.14 @@ -47,23 +43,19 @@
    1.15  
    1.16  		public string SystemPtsAbbrevSingle
    1.17  		{
    1.18 -			get { return systemPtsAbbrevSingle; }
    1.19 -			set { systemPtsAbbrevSingle = value; }
    1.20 +			get; set;
    1.21  		}
    1.22  		public string SystemPtsAbbrevPlural
    1.23  		{
    1.24 -			get { return systemPtsAbbrevPlural; }
    1.25 -			set { systemPtsAbbrevPlural = value; }
    1.26 +			get; set;
    1.27  		}
    1.28  		public string SystemPtsNameSingle
    1.29  		{
    1.30 -			get { return systemPtsNameSingle; }
    1.31 -			set { systemPtsNameSingle = value; }
    1.32 +			get; set;
    1.33  		}
    1.34  		public string SystemPtsNamePlural
    1.35  		{
    1.36 -			get { return systemPtsNamePlural; }
    1.37 -			set { systemPtsNamePlural = value; }
    1.38 +			get; set;
    1.39  		}
    1.40  		public bool AllowAllies
    1.41  		{