changeset 397:5733e3b957cc Ticket341-DefaultArmySize

Re #341: Default army size of 0 * Set sensible defaults in GameSystem Also: * Setup .hgignore
author IBBoard <dev@ibboard.co.uk>
date Sun, 21 Aug 2011 20:42:23 +0100
parents cbe69734f48f
children fceddbff47ee 204e6de93232
files .hgignore API/Objects/GameSystem.cs
diffstat 2 files changed, 10 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Sun Aug 21 20:42:23 2011 +0100
     1.3 @@ -0,0 +1,4 @@
     1.4 +obj/*
     1.5 +bin/*
     1.6 +IBBoard.WarFoundry.API.suo
     1.7 +IBBoard.WarFoundry.API.pidb
     1.8 \ No newline at end of file
     2.1 --- a/API/Objects/GameSystem.cs	Sun Aug 14 00:58:02 2011 +0000
     2.2 +++ b/API/Objects/GameSystem.cs	Sun Aug 21 20:42:23 2011 +0100
     2.3 @@ -13,18 +13,17 @@
     2.4  	/// </summary>
     2.5  	public class GameSystem : WarFoundryStagedLoadingObject
     2.6  	{
     2.7 -		private static int SYSTEM_DEFAULT_ARMY_SIZE = 1000;
     2.8 -		private bool warnOnError;
     2.9 -		private bool allowAllies;
    2.10 +		private static readonly int SYSTEM_DEFAULT_ARMY_SIZE = 1000;
    2.11 +		private bool warnOnError = true;
    2.12 +		private bool allowAllies = false;
    2.13  		private Dictionary<string, Category> categories = new Dictionary<string, Category>();
    2.14  		private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>();
    2.15 -		private string defaultStats;
    2.16 -		private int defaultArmySize;
    2.17 +		private string defaultStats = "";
    2.18 +		private int defaultArmySize = SYSTEM_DEFAULT_ARMY_SIZE;
    2.19  
    2.20  		public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory)
    2.21  		{
    2.22 -			stats = new Dictionary<string, SystemStats>();
    2.23 -			defaultStats = "";
    2.24 +			//Do nothing special
    2.25  		}
    2.26  
    2.27  		public int SystemArmyDefaultSize