Exemple #1
0
 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);
 }
Exemple #2
0
 public Scout(WorldClocks clocks)
 {
     this.clocks = clocks;
 }
Exemple #3
0
 public Round(string filename, WorldClocks clocks, params string[] playerNames)
 {
     Map     = new Map(filename);
     Players = playerNames.Select(name => new Player(name, Map, clocks)).ToArray();
 }