89 log_normal(
"AI timer stats: [%15.3f] ---- (AI type: %s)",
98 log_normal(
"AI timer stats: [%15.3f] P%03d (AI type: %s)",
168 log_debug(
"AI timer start [%15.3f] ---- (AI type: %s)",
172 log_debug(
"AI timer =====> [depth: %3d] ---- (AI type: %s)",
191 log_debug(
"AI timer stop [%15.3f] ---- (AI type: %s)",
194 log_debug(
"AI timer =====> [depth: %3d] ---- (AI type: %s)",
199 log_debug(
"AI timer missing? ---- (AI type: %s)",
215 log_debug(
"AI timer start [%15.3f] P%03d (AI type: %s) %s",
220 log_debug(
"AI timer =====> [depth: %3d] P%03d (AI type: %s) %s",
240 log_debug(
"AI timer stop [%15.3f] P%03d (AI type: %s) %s",
244 log_debug(
"AI timer =====> [depth: %3d] P%03d (AI type: %s) %s",
250 log_debug(
"AI timer missing? P%03d (AI type: %s) %s",
272 memset(ai, 0,
sizeof(*ai));
307 log_error(
_(
"Too many AI modules. Max is %d."),
const char * ai_level_name_update_cb(const char *old)
void init_ai(struct ai_type *ai)
const char * ai_name(const struct ai_type *ai)
struct ai_type * ai_type_alloc(void)
const char * ai_type_name_or_fallback(const char *orig_name)
struct ai_type * ai_type_by_name(const char *search)
int ai_type_get_count(void)
void ai_type_dealloc(void)
struct ai_type * get_ai_type(int id)
static struct ai_type ai_types[FREECIV_AI_MOD_LAST]
int ai_type_number(const struct ai_type *ai)
#define ai_timer_start(...)
#define ai_timer_stop(...)
#define ai_timer_free(...)
#define ai_timer_player_start(...)
#define ai_timer_init(...)
#define ai_timer_player_stop(...)
#define ai_type_iterate_end
#define ai_type_iterate(NAME_ai)
#define MAX_NUM_PLAYER_SLOTS
#define fc_assert_ret(condition)
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
#define log_debug(message,...)
#define log_normal(message,...)
#define log_error(message,...)
#define fc_calloc(n, esz)
const char * player_name(const struct player *pplayer)
int player_index(const struct player *pplayer)
static struct timer * aitimer[AIT_LAST][2]
const struct ai_type * ai
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)
void timer_destroy(struct timer *t)
void timer_start(struct timer *t)
void timer_stop(struct timer *t)
struct timer * timer_new(enum timer_timetype type, enum timer_use use, const char *name)
double timer_read_seconds(struct timer *t)