43 int foodneed,
int prodneed);
46 enum unit_activity act_id,
int value);
48 enum unit_activity act_id);
void adv_city_free(struct city *pcity)
Free advisors related city data.
int adv_city_worker_act_get(const struct city *pcity, int city_tile_index, enum unit_activity act_id)
Return the value for activity 'doing' on tile 'city_tile_index' of city 'pcity'.
void adv_city_worker_extra_set(struct city *pcity, int city_tile_index, const struct extra_type *pextra, int value)
Set the value for extra on tile 'city_tile_index' of city 'pcity'.
void adv_city_update(struct city *pcity)
Update the memory allocated for AI city handling.
int adv_city_worker_extra_get(const struct city *pcity, int city_tile_index, const struct extra_type *pextra)
Return the value for extra on tile 'city_tile_index' of city 'pcity'.
void initialize_infrastructure_cache(struct player *pplayer)
Do all tile improvement calculations and cache them for later.
void adv_city_worker_act_set(struct city *pcity, int city_tile_index, enum unit_activity act_id, int value)
Set the value for activity 'doing' on tile 'city_tile_index' of city 'pcity'.
void adv_city_worker_rmextra_set(struct city *pcity, int city_tile_index, const struct extra_type *pextra, int value)
Set the value for extra removal on tile 'city_tile_index' of city 'pcity'.
int adv_city_worker_rmextra_get(const struct city *pcity, int city_tile_index, const struct extra_type *pextra)
Return the value for extra removal on tile 'city_tile_index' of city 'pcity'.
int city_tile_value(const struct city *pcity, const struct tile *ptile, int foodneed, int prodneed)
Returns a measure of goodness of a tile to pcity.
void adv_city_alloc(struct city *pcity)
Allocate advisors related city data.
adv_want building_want[B_LAST]
struct worker_activity_cache * act_cache