55 if (player_data != NULL) {
83 fc_snprintf(buf,
sizeof(buf),
"player%d.%s%d", plrno, aitstr,
91 "%s.war_reason", buf);
95 "%s.warn_space", buf);
99 "%s.ask_alliance", buf);
101 "%s.ask_ceasefire", buf);
126 fc_snprintf(buf,
sizeof(buf),
"player%d.%s%d", plrno, aitstr,
162 if (close_original) {
struct ai_plr * dai_plr_data_get(struct ai_type *ait, struct player *pplayer, bool *caller_closes)
struct ai_dip_intel * dai_diplomacy_get(struct ai_type *ait, const struct player *plr1, const struct player *plr2)
void dai_data_init(struct ai_type *ait, struct player *pplayer)
void dai_data_phase_finished(struct ai_type *ait, struct player *pplayer)
void dai_data_close(struct ai_type *ait, struct player *pplayer)
void dai_player_alloc(struct ai_type *ait, struct player *pplayer)
void dai_player_save(struct ai_type *ait, const char *aitstr, struct player *pplayer, struct section_file *file, int plrno)
void dai_player_copy(struct ai_type *ait, struct player *original, struct player *created)
void dai_player_save_relations(struct ai_type *ait, const char *aitstr, struct player *pplayer, struct player *other, struct section_file *file, int plrno)
void dai_player_load(struct ai_type *ait, const char *aitstr, struct player *pplayer, const struct section_file *file, int plrno)
void dai_player_free(struct ai_type *ait, struct player *pplayer)
void dai_gained_control(struct ai_type *ait, struct player *pplayer)
void dai_player_load_relations(struct ai_type *ait, const char *aitstr, struct player *pplayer, struct player *other, const struct section_file *file, int plrno)
static struct ai_plr * def_ai_player_data(const struct player *pplayer, struct ai_type *deftype)
#define city_list_iterate(citylist, pcity)
#define city_list_iterate_end
void dai_assess_danger_player(struct ai_type *ait, const struct civ_map *nmap, struct player *pplayer)
#define fc_calloc(n, esz)
Multiplier_type_id multiplier_index(const struct multiplier *pmul)
#define multipliers_iterate(_mul_)
#define multipliers_iterate_end
void player_set_ai_data(struct player *pplayer, const struct ai_type *ai, void *data)
int player_index(const struct player *pplayer)
#define players_iterate_end
#define players_iterate(_pplayer)
int secfile_lookup_int_default(const struct section_file *secfile, int def, const char *path,...)
#define secfile_insert_int(secfile, value, path,...)
signed char asked_about_alliance
enum war_reason war_reason
signed char asked_about_peace
signed char warned_about_space
signed char ally_patience
signed char asked_about_ceasefire
adv_want tech_want[A_LAST+1]
enum ai_level skill_level
struct city_list * cities
struct player_ai ai_common
struct multiplier_value multipliers[MAX_NUM_MULTIPLIERS]
int fc_snprintf(char *str, size_t n, const char *format,...)
#define advance_index_iterate_end
#define advance_index_iterate(_start, _index)