Ejemplo n.º 1
0
 public int TotalPopulation(Game game)
 {
     int population = 0;
     foreach (Structure structure in game.Structures)
     {
         population += structure.SupportedPopulation;
     }
     return population;
 }
Ejemplo n.º 2
0
 public int ConsumedPopulation(Game game)
 {
     int population = 0;
     foreach (Structure structure in game.Structures)
     {
         population += structure.PopulationCost;
     }
     return population;
 }
Ejemplo n.º 3
0
 public int TotalFloors(Game game)
 {
     return game.Structures.LastOrDefault().Floor;
 }