42 const struct city *pcity)
107 const struct player *pplayer,
118 fc_snprintf(buffer,
sizeof(buffer),
"%s->%s(l%d,c%d,d%d%s): ",
124 adip->is_allied_with_enemy ?
"?" :
125 (
adip->at_war_with_ally ?
"!" :
""));
146 const struct unit *
punit,
const char *msg, ...)
152 const struct city *pcity;
156 const char *
type =
"guard";
157 const char *s =
"none";
176 "%s %s[%d] %s (%d,%d){%s:%d@%d,%d} ",
const char * city_name_get(const struct city *pcity)
#define city_tile(_pcity_)
struct ai_dip_intel * dai_diplomacy_get(struct ai_type *ait, const struct player *plr1, const struct player *plr2)
void dai_unit_log(struct ai_type *ait, char *buffer, int buflength, const struct unit *punit)
void real_tech_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct player *pplayer, struct advance *padvance, const char *msg,...)
void real_bodyguard_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct unit *punit, const char *msg,...)
void real_diplo_log(struct ai_type *ait, const char *file, const char *function, int line, enum log_level level, bool send_notify, const struct player *pplayer, const struct player *aplayer, const char *msg,...)
void dai_city_log(struct ai_type *ait, char *buffer, int buflength, const struct city *pcity)
static struct ai_plr * def_ai_player_data(const struct player *pplayer, struct ai_type *deftype)
static struct ai_city * def_ai_city_data(const struct city *pcity, struct ai_type *deftype)
static struct unit_ai * def_ai_unit_data(const struct unit *punit, struct ai_type *deftype)
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
const struct ft_color ftc_log
struct unit * game_unit_by_number(int id)
struct city * game_city_by_number(int id)
void do_log(const char *file, const char *function, int line, bool print_from_where, enum log_level level, const char *message,...)
#define index_to_map_pos(pmap_x, pmap_y, mindex)
const char * nation_rule_name(const struct nation_type *pnation)
struct nation_type * nation_of_unit(const struct unit *punit)
void notify_conn(struct conn_list *dest, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...)
const char * player_name(const struct player *pplayer)
int player_index(const struct player *pplayer)
int research_goal_unknown_techs(const struct research *presearch, Tech_type_id goal)
struct research * research_get(const struct player *pplayer)
struct setting_list * level[OLEVELS_NUM]
int love[MAX_NUM_PLAYER_SLOTS]
struct player_ai ai_common
int fc_snprintf(char *str, size_t n, const char *format,...)
int cat_snprintf(char *str, size_t n, const char *format,...)
int fc_vsnprintf(char *str, size_t n, const char *format, va_list ap)
struct advance * advance_by_number(const Tech_type_id atype)
struct advance * valid_advance(struct advance *padvance)
const char * advance_rule_name(const struct advance *padvance)
Tech_type_id advance_index(const struct advance *padvance)
Tech_type_id advance_number(const struct advance *padvance)
const char * unit_rule_name(const struct unit *punit)