42 const struct tile *ptile);
44 const struct tile *ptile);
46 const struct tile *ptile);
48 const struct tile *ptile,
51 const struct tile *ptile,
63 const struct tile *ptile)
103 const struct tile *ptile)
143 const struct tile *ptile)
189 const struct tile *ptile,
224 const struct tile *ptile,
279 if (pextra->buildable
338 log_debug(
"update activity cache for %s: radius_sq changed from "
382 log_debug(
"update activity cache for %s: radius_sq changed from "
408 log_debug(
"update activity cache for %s: radius_sq changed from "
#define action_id_get_activity(act_id)
#define as_transform_action_iterate_end
#define as_transform_action_iterate(_act_)
const char * city_name_get(const struct city *pcity)
int city_tile_output_now(const struct city *pcity, const struct tile *ptile, Output_type_id otype)
int city_map_radius_sq_get(const struct city *pcity)
int city_map_tiles(int city_radius_sq)
#define city_list_iterate(citylist, pcity)
#define city_tile(_pcity_)
#define city_tile_iterate_index(_nmap, _radius_sq, _city_tile, _tile, _index)
#define city_tile_iterate_index_end
#define city_owner(_pcity_)
#define city_list_iterate_end
#define city_map_iterate_end
#define city_map_iterate(_radius_sq, _index, _x, _y)
#define city_map_tiles_from_city(_pcity)
static adv_want adv_calc_transform(const struct city *pcity, const struct tile *ptile)
adv_want adv_city_worker_act_get(const struct city *pcity, int city_tile_index, enum unit_activity act_id)
void adv_city_free(struct city *pcity)
static adv_want adv_calc_extra(const struct city *pcity, const struct tile *ptile, const struct extra_type *pextra)
static adv_want adv_calc_rmextra(const struct city *pcity, const struct tile *ptile, const struct extra_type *pextra)
void adv_city_worker_extra_set(struct city *pcity, int city_tile_index, const struct extra_type *pextra, int value)
void adv_city_update(struct city *pcity)
void adv_city_worker_act_set(struct city *pcity, int city_tile_index, enum unit_activity act_id, adv_want value)
int adv_city_worker_extra_get(const struct city *pcity, int city_tile_index, const struct extra_type *pextra)
void initialize_infrastructure_cache(struct player *pplayer)
void adv_city_worker_rmextra_set(struct city *pcity, int city_tile_index, const struct extra_type *pextra, int value)
int adv_city_worker_rmextra_get(const struct city *pcity, int city_tile_index, const struct extra_type *pextra)
static adv_want adv_calc_cultivate(const struct city *pcity, const struct tile *ptile)
static adv_want adv_calc_plant(const struct city *pcity, const struct tile *ptile)
void adv_city_alloc(struct city *pcity)
adv_want city_tile_value(const struct city *pcity, const struct tile *ptile, int foodneed, int prodneed)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
#define log_debug(message,...)
bool terrain_surroundings_allow_change(const struct civ_map *nmap, const struct tile *ptile, const struct terrain *pterrain)
#define fc_calloc(n, esz)
#define fc_realloc(ptr, sz)
struct worker_activity_cache * act_cache
struct city::@17::@19 server
struct city_list * cities
adv_want extra[MAX_EXTRA_TYPES]
adv_want rmextra[MAX_EXTRA_TYPES]
adv_want act[ACTIVITY_LAST]
#define terrain_has_flag(terr, flag)
void tile_add_extra(struct tile *ptile, const struct extra_type *pextra)
void tile_virtual_destroy(struct tile *vtile)
void tile_remove_extra(struct tile *ptile, const struct extra_type *pextra)
void tile_change_terrain(struct tile *ptile, struct terrain *pterrain)
struct tile * tile_virtual_new(const struct tile *ptile)
struct city * tile_city(const struct tile *ptile)
#define tile_terrain(_tile)
#define tile_has_extra(ptile, pextra)