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