public Player(string name, Map map, WorldClocks clocks) { Name = name; Resources = new Dictionary <Resource, int>(); foreach (Resource res in Enum.GetValues(typeof(Resource))) { Resources.Add(res, 0); } Army = new Dictionary <UnitType, int>(); foreach (UnitType t in Enum.GetValues(typeof(UnitType))) { Army.Add(t, 0); } this.map = map; Scout = new Scout(clocks); }
public Scout(WorldClocks clocks) { this.clocks = clocks; }
public Round(string filename, WorldClocks clocks, params string[] playerNames) { Map = new Map(filename); Players = playerNames.Select(name => new Player(name, Map, clocks)).ToArray(); }