comparison API/Objects/GameSystem.cs @ 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 50d0d3b39a0b
children 71fceea2725b
comparison
equal deleted inserted replaced
394:cbe69734f48f 397:5733e3b957cc
11 /// <summary> 11 /// <summary>
12 /// Summary description for GameSystem. 12 /// Summary description for GameSystem.
13 /// </summary> 13 /// </summary>
14 public class GameSystem : WarFoundryStagedLoadingObject 14 public class GameSystem : WarFoundryStagedLoadingObject
15 { 15 {
16 private static int SYSTEM_DEFAULT_ARMY_SIZE = 1000; 16 private static readonly int SYSTEM_DEFAULT_ARMY_SIZE = 1000;
17 private bool warnOnError; 17 private bool warnOnError = true;
18 private bool allowAllies; 18 private bool allowAllies = false;
19 private Dictionary<string, Category> categories = new Dictionary<string, Category>(); 19 private Dictionary<string, Category> categories = new Dictionary<string, Category>();
20 private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>(); 20 private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>();
21 private string defaultStats; 21 private string defaultStats = "";
22 private int defaultArmySize; 22 private int defaultArmySize = SYSTEM_DEFAULT_ARMY_SIZE;
23 23
24 public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory) 24 public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory)
25 { 25 {
26 stats = new Dictionary<string, SystemStats>(); 26 //Do nothing special
27 defaultStats = "";
28 } 27 }
29 28
30 public int SystemArmyDefaultSize 29 public int SystemArmyDefaultSize
31 { 30 {
32 get { return defaultArmySize; } 31 get { return defaultArmySize; }