23 struct city *pcity,
int role,
struct unit_type * dai_wants_role_unit(struct ai_type *ait, struct player *pplayer, struct city *pcity, int role, int want)
Returns the best unit we can build, or nullptr if none.
struct unit_type * dai_wants_defender_against(struct ai_type *ait, struct player *pplayer, struct city *pcity, const struct unit_type *att, int want)
Returns the best defense multiplier unit we can build, or nullptr if none.
void dai_clear_tech_wants(struct ai_type *ait, struct player *pplayer)
Zero player tech wants.
void dai_manage_tech(struct ai_type *ait, struct player *pplayer)
Key AI research function.