![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Nation default cities. More...
Public Attributes | |
| char * | name |
| enum nation_city_preference | river |
| enum nation_city_preference | terrain [MAX_NUM_TERRAINS] |
Nation default cities.
The nation_city structure holds information about a default choice for the city name. The 'name' field is, of course, just the name for the city. The 'river' and 'terrain' fields are entries recording whether the terrain is present near the city - we give higher priority to cities which have matching terrain. In the case of a river we only care if the city is on the river, for other terrain features we give the bonus if the city is close to the terrain.
This is controlled through the nation's ruleset like this: cities = "Washington (ocean, river, swamp)", "New York (!mountains)"
Definition at line 297 of file nation.cpp.
| char* nation_city::name |
Definition at line 298 of file nation.cpp.
Referenced by nation_city_destroy(), nation_city_name(), and nation_city_new().
| enum nation_city_preference nation_city::river |
Definition at line 298 of file nation.cpp.
Referenced by nation_city_set_river_preference().
| enum nation_city_preference nation_city::terrain[MAX_NUM_TERRAINS] |
Definition at line 298 of file nation.cpp.
Referenced by nation_city_set_terrain_preference().