36 #define BUILDING_WAIT_MINIMUM (1)
83 const struct city *pcity,
85 struct tech_vector *needed_techs,
90 const struct city *pcity,
96 struct city *wonder_city);
102 enum effect_type effect_type,
void want_techs_for_improvement_effect(struct ai_type *ait, struct player *pplayer, const struct city *pcity, const struct impr_type *pimprove, struct tech_vector *needed_techs, adv_want building_want)
Increase want for a technologies because of the value of that technology in providing an improvement ...
void dai_city_save(struct ai_type *ait, const char *aitstr, struct section_file *file, const struct city *pcity, const char *citystr)
Write ai city segments to savefile.
void dai_city_load(struct ai_type *ait, const char *aitstr, const struct section_file *file, struct city *pcity, const char *citystr)
Load ai city segment from savefile.
void dai_manage_cities(struct ai_type *ait, struct player *pplayer)
One of the top level AI functions.
void dai_city_alloc(struct ai_type *ait, struct city *pcity)
Initialize city for use with default AI.
void dai_consider_wonder_city(struct ai_type *ait, struct city *pcity, bool *result)
Is it ok for advisor code to consider given city as wonder city?
void dont_want_tech_obsoleting_impr(struct ai_type *ait, struct player *pplayer, const struct city *pcity, const struct impr_type *pimprove, adv_want building_want)
Decrease want for a technology because of the value of that technology in obsoleting an improvement e...
void dai_build_adv_adjust(struct ai_type *ait, struct player *pplayer, struct city *wonder_city)
Calculate how much an AI player should want to build particular improvements, because of the effects ...
void dai_city_free(struct ai_type *ait, struct city *pcity)
Free city from use with default AI.
Impr_type_id dai_find_source_building(struct city *pcity, enum effect_type effect_type, const struct unit_type *utype)
Returns a buildable, non-obsolete building that can provide the effect.
void dai_build_adv_init(struct ai_type *ait, struct player *pplayer)
Initialize building advisor.
adv_want dai_city_want(struct player *pplayer, struct city *acity, struct adv_data *adv, struct impr_type *pimprove)
Calculates city want from some input values.
int distance_to_wonder_city
struct ai_invasion invasion
struct unit_type * worker_type