29 const std::unique_ptr<cm_result> &cmr);
32 struct player *nationality,
const char *reason);
34 struct player *destroyer,
const char *reason);
void remove_obsolete_buildings(struct player *pplayer)
Sell obsolete buildings from all cities of the player.
bool city_change_size(struct city *pcity, citizens new_size, struct player *nationality, const char *reason)
Change the city size.
void choose_build_target(struct player *pplayer, struct city *pcity)
Assuming we just finished building something, find something new to build.
void auto_arrange_workers(struct city *pcity)
Call sync_cities() to send the affected cities to the clients.
void city_refresh_queue_add(struct city *pcity)
Queue pending city_refresh() for later.
void nullify_prechange_production(struct city *pcity)
Initialize all variables containing information about production before it was changed.
bool city_empty_food_stock(struct city *pcity)
Returns TRUE iff the city's food stock was emptied.
bool check_city_migrations()
Check for citizens who want to migrate between the cities that overlap.
void apply_cmresult_to_city(struct city *pcity, const std::unique_ptr< cm_result > &cmr)
Rearrange workers according to a cm_result struct.
void city_refresh_queue_processing()
Refresh the listed cities.
void city_repair_size(struct city *pcity, int change)
Repair the city population without affecting city size.
void send_city_turn_notifications(struct connection *pconn)
Send global and player specific city turn notifications.
int city_incite_cost(struct player *pplayer, struct city *pcity)
Returns the cost to incite a city.
void update_city_activities(struct player *pplayer)
Update all cities of one nation (costs for buildings, unit upkeep, ...).
bool city_reduce_size(struct city *pcity, citizens pop_loss, struct player *destroyer, const char *reason)
Reduce the city size.
bool city_refresh(struct city *pcity)
Updates unit upkeeps and city internal cached data.
void check_disasters()
Check for any disasters hitting any city, and apply those disasters.
void city_style_refresh(struct city *pcity)
Recheck and store style of the city.
void city_refresh_for_player(struct player *pplayer)
Called on government change or wonder completion or stuff like that – Syela.
void remove_obsolete_buildings_city(struct city *pcity, bool refresh)
Automatically sells obsolete buildings from city.