Feature #1202 ยป 0027-AI-Pass-civ_map-to-dai_choose_diplomat_offensive.patch
ai/default/aidiplomat.c | ||
---|---|---|
values in choice.
|
||
******************************************************************************/
|
||
void dai_choose_diplomat_offensive(struct ai_type *ait,
|
||
const struct civ_map *nmap,
|
||
struct player *pplayer,
|
||
struct city *pcity,
|
||
struct adv_choice *choice)
|
||
... | ... | |
struct unit_type *ut = best_role_unit(pcity, UTYF_DIPLOMAT);
|
||
struct ai_plr *ai = def_ai_player_data(pplayer, ait);
|
||
int expenses;
|
||
const struct civ_map *nmap = &(wld.map);
|
||
dai_calc_data(pplayer, NULL, &expenses, NULL);
|
||
ai/default/aidiplomat.h | ||
---|---|---|
/**********************************************************************
|
||
/***********************************************************************
|
||
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
|
||
This program is free software; you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
... | ... | |
struct city *pcity,
|
||
struct adv_choice *choice, int def);
|
||
void dai_choose_diplomat_offensive(struct ai_type *ait,
|
||
const struct civ_map *nmap,
|
||
struct player *pplayer,
|
||
struct city *pcity,
|
||
struct adv_choice *choice);
|
||
#endif /* FC__AIDIPLOMAT_H */
|
||
#endif /* FC__AIDIPLOMAT_H */
|
ai/default/daimilitary.c | ||
---|---|---|
}
|
||
/* Consider making an offensive diplomat */
|
||
dai_choose_diplomat_offensive(ait, pplayer, pcity, choice);
|
||
dai_choose_diplomat_offensive(ait, nmap, pplayer, pcity, choice);
|
||
/* Consider making a sea bodyguard */
|
||
punittype = dai_choose_bodyguard(ait, nmap, pcity, TC_OCEAN, L_DEFEND_GOOD,
|