519 enum casus_belli_range scope,
520 const struct action *paction,
600 strncpy(ai->
name,
"classic",
sizeof(ai->
name));
603 private->contemplace_workers =
TRUE;
void dai_ferry_lost(struct ai_type *ait, struct unit *punit)
void dai_ferry_transformed(struct ai_type *ait, struct unit *ferry, const struct unit_type *old)
void dai_ferry_init_ferry(struct ai_type *ait, struct unit *ferry)
void dai_do_last_activities(struct ai_type *ait, struct player *pplayer)
void dai_do_first_activities(struct ai_type *ait, struct player *pplayer)
static void cai_restart_phase(struct player *pplayer)
static void cai_city_log(char *buffer, int buflength, const struct city *pcity)
static void cai_ferry_lost(struct unit *punit)
static void cai_city_free(struct city *pcity)
static void cai_player_load_relations(struct player *pplayer, struct player *other, const struct section_file *file, int plrno)
static void cai_module_close(void)
const char * fc_ai_classic_capstr(void)
static void cai_units_ruleset_init(void)
static void cai_city_alloc(struct city *pcity)
static void cai_wonder_city_distance(struct player *pplayer, struct adv_data *adv)
static void cai_build_adv_adjust(struct player *pplayer, struct city *wonder_city)
static struct ai_type * classic_ai_get_self(void)
static void cai_diplomacy_first_contact(struct player *pplayer, struct player *aplayer)
static void cai_units_ruleset_close(void)
static void cai_unit_save(struct section_file *file, const struct unit *punit, const char *unitstr)
static void cai_do_last_activities(struct player *pplayer)
static void cai_unit_turn_end(struct unit *punit)
static void cai_player_alloc(struct player *pplayer)
static void cai_created_by_civil_war(struct player *original, struct player *created)
static void cai_switch_to_explore(struct unit *punit, struct tile *target, enum override_bool *allow)
static void cai_gov_value(struct player *pplayer, struct government *gov, adv_want *val, bool *override)
bool fc_ai_classic_setup(struct ai_type *ai)
static void cai_data_phase_finished(struct player *pplayer)
static void cai_ferry_init_ferry(struct unit *ferry)
static void cai_auto_settler_run(struct player *pplayer, struct unit *punit, struct settlermap *state)
static void cai_unit_init(struct unit *punit)
static void cai_diplomacy_actions(struct player *pplayer)
static void cai_build_adv_init(struct player *pplayer)
static void cai_data_phase_begin(struct player *pplayer, bool is_new_phase)
static void cai_incident(enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *receiver, struct player *violator, struct player *victim)
static void cai_consider_tile_dangerous(struct tile *ptile, struct unit *punit, enum override_bool *result)
static void cai_unit_move_or_attack(struct unit *punit, struct tile *ptile, struct pf_path *path, int step)
static void cai_do_first_activities(struct player *pplayer)
static void cai_gained_control(struct player *pplayer)
static void cai_revolution_start(struct player *pplayer)
static void cai_build_adv_override(struct city *pcity, struct adv_choice *choice)
static void cai_city_load(const struct section_file *file, struct city *pcity, const char *citystr)
static void cai_unit_log(char *buffer, int buflength, const struct unit *punit)
static void cai_treaty_accepted(struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
static void cai_ferry_transformed(struct unit *ferry, const struct unit_type *old)
static void cai_consider_wonder_city(struct city *pcity, bool *result)
static struct ai_type * self
static void cai_unit_load(const struct section_file *file, struct unit *punit, const char *unitstr)
static void cai_treaty_evaluate(struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
static void classic_ai_set_self(struct ai_type *ai)
static void cai_player_free(struct player *pplayer)
static void cai_player_save_relations(struct player *pplayer, struct player *other, struct section_file *file, int plrno)
static void cai_consider_plr_dangerous(struct player *plr1, struct player *plr2, enum override_bool *result)
static void cai_unit_new_adv_task(struct unit *punit, enum adv_unit_task task, struct tile *ptile)
static void cai_auto_settler_cont(struct player *pplayer, struct unit *punit, struct settlermap *state)
static void cai_auto_settler_reset(struct player *pplayer)
static void cai_split_by_civil_war(struct player *original, struct player *created)
static void cai_city_save(struct section_file *file, const struct city *pcity, const char *citystr)
static void cai_unit_close(struct unit *punit)
void dai_city_save(struct ai_type *ait, const char *aitstr, struct section_file *file, const struct city *pcity, const char *citystr)
void dai_city_load(struct ai_type *ait, const char *aitstr, const struct section_file *file, struct city *pcity, const char *citystr)
void dai_city_alloc(struct ai_type *ait, struct city *pcity)
void dai_consider_wonder_city(struct ai_type *ait, struct city *pcity, bool *result)
void dai_build_adv_adjust(struct ai_type *ait, struct player *pplayer, struct city *wonder_city)
void dai_city_free(struct ai_type *ait, struct city *pcity)
void dai_build_adv_init(struct ai_type *ait, struct player *pplayer)
void dai_gov_value(struct ai_type *ait, struct player *pplayer, struct government *gov, adv_want *val, bool *override)
void dai_data_phase_begin(struct ai_type *ait, struct player *pplayer, bool is_new_phase)
void dai_data_phase_finished(struct ai_type *ait, struct player *pplayer)
void dai_treaty_accepted(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
void dai_incident(struct ai_type *ait, enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *receiver, struct player *violator, struct player *victim)
void dai_revolution_start(struct ai_type *ait, struct player *pplayer)
void dai_diplomacy_actions(struct ai_type *ait, struct player *pplayer)
void dai_treaty_evaluate(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
void dai_diplomacy_first_contact(struct ai_type *ait, struct player *pplayer, struct player *aplayer)
void dai_wonder_city_distance(struct ai_type *ait, struct player *pplayer, struct adv_data *adv)
void dai_unit_log(struct ai_type *ait, char *buffer, int buflength, const struct unit *punit)
void dai_city_log(struct ai_type *ait, char *buffer, int buflength, const struct city *pcity)
void dai_assess_danger_player(struct ai_type *ait, const struct civ_map *nmap, struct player *pplayer)
void dai_player_alloc(struct ai_type *ait, struct player *pplayer)
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_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)
void dai_auto_settler_cont(struct ai_type *ait, const struct civ_map *nmap, struct player *pplayer, struct unit *punit, struct settlermap *state)
void dai_auto_settler_reset(struct ai_type *ait, struct player *pplayer)
void dai_auto_settler_run(struct ai_type *ait, const struct civ_map *nmap, struct player *pplayer, struct unit *punit, struct settlermap *state)
void dai_unit_save(struct ai_type *ait, const char *aitstr, struct section_file *file, const struct unit *punit, const char *unitstr)
void dai_units_ruleset_init(struct ai_type *ait)
void dai_switch_to_explore(struct ai_type *ait, struct unit *punit, struct tile *target, enum override_bool *allow)
void dai_unit_turn_end(struct ai_type *ait, struct unit *punit)
void dai_unit_init(struct ai_type *ait, struct unit *punit)
void dai_consider_tile_dangerous(struct ai_type *ait, struct tile *ptile, struct unit *punit, enum override_bool *result)
void dai_unit_load(struct ai_type *ait, const char *aitstr, const struct section_file *file, struct unit *punit, const char *unitstr)
void dai_unit_close(struct ai_type *ait, struct unit *punit)
void dai_units_ruleset_close(struct ai_type *ait)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
void(* revolution_start)(struct player *pplayer)
void(* log_fragment_unit)(char *buffer, int buflength, const struct unit *punit)
void(* city_alloc)(struct city *pcity)
void(* created_by_civil_war)(struct player *original, struct player *created)
void(* consider_tile_dangerous)(struct tile *ptile, struct unit *punit, enum override_bool *result)
void(* unit_lost)(struct unit *punit)
void(* treaty_evaluate)(struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
void(* gov_value)(struct player *pplayer, struct government *gov, adv_want *val, bool *override)
void(* treaty_accepted)(struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
void(* unit_transformed)(struct unit *punit, const struct unit_type *old_type)
void(* log_fragment_city)(char *buffer, int buflength, const struct city *pcity)
void(* settler_run)(struct player *pplayer, struct unit *punit, struct settlermap *state)
void(* unit_load)(const struct section_file *file, struct unit *punit, const char *unitstr)
void(* unit_move)(struct unit *punit, struct tile *ptile, struct pf_path *path, int step)
void(* unit_free)(struct unit *punit)
void(* phase_finished)(struct player *pplayer)
void(* restart_phase)(struct player *pplayer)
void(* settler_reset)(struct player *pplayer)
void(* unit_save)(struct section_file *file, const struct unit *punit, const char *unitstr)
void(* units_ruleset_close)(void)
void(* diplomacy_actions)(struct player *pplayer)
void(* player_alloc)(struct player *pplayer)
void(* build_adv_prepare)(struct player *pplayer, struct adv_data *adv)
void(* build_adv_adjust_want)(struct player *pplayer, struct city *wonder_city)
void(* build_adv_init)(struct player *pplayer)
void(* unit_task)(struct unit *punit, enum adv_unit_task task, struct tile *ptile)
void(* last_activities)(struct player *pplayer)
void(* incident)(enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *receiver, struct player *violator, struct player *victim)
void(* settler_cont)(struct player *pplayer, struct unit *punit, struct settlermap *state)
void(* first_contact)(struct player *pplayer, struct player *aplayer)
void(* city_save)(struct section_file *file, const struct city *pcity, const char *citystr)
void(* consider_wonder_city)(struct city *pcity, bool *result)
void(* city_free)(struct city *pcity)
void(* choose_building)(struct city *pcity, struct adv_choice *choice)
struct ai_type::@14 funcs
void(* player_save_relations)(struct player *pplayer, struct player *other, struct section_file *file, int plrno)
void(* module_close)(void)
void(* city_load)(const struct section_file *file, struct city *pcity, const char *citystr)
void(* player_load_relations)(struct player *pplayer, struct player *other, const struct section_file *file, int plrno)
void(* phase_begin)(struct player *pplayer, bool new_phase)
void(* player_free)(struct player *pplayer)
void(* split_by_civil_war)(struct player *original, struct player *created)
void(* unit_turn_end)(struct unit *punit)
void(* unit_alloc)(struct unit *punit)
void(* gained_control)(struct player *pplayer)
void(* unit_got)(struct unit *punit)
void(* first_activities)(struct player *pplayer)
void(* consider_plr_dangerous)(struct player *plr1, struct player *plr2, enum override_bool *result)
void(* units_ruleset_init)(void)
void(* want_to_explore)(struct unit *punit, struct tile *target, enum override_bool *allow)