1
/**********************************************************************
2
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2, or (at your option)
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
***********************************************************************/
18
#include "gotohand.h" /* enum goto_result */
23
* Change these and remake to watch logs from a specific
24
* part of the AI code.
26
#define LOGLEVEL_BODYGUARD LOG_DEBUG
27
#define LOGLEVEL_UNIT LOG_DEBUG
28
#define LOGLEVEL_GOTO LOG_DEBUG
29
#define LOGLEVEL_CITY LOG_DEBUG
30
#define LOGLEVEL_BUILD LOG_DEBUG
31
#define LOGLEVEL_HUNT LOG_DEBUG
32
#define LOGLEVEL_PLAYER LOG_DEBUG
33
#define LOGLEVEL_TECH LOG_DEBUG
70
enum ai_timer_activity {
71
TIMER_START, TIMER_STOP
74
void TECH_LOG(int level, const struct player *pplayer,
75
struct advance *padvance, const char *msg, ...)
76
fc__attribute((__format__ (__printf__, 4, 5)));
77
void DIPLO_LOG(int level, const struct player *pplayer,
78
const struct player *aplayer, const char *msg, ...)
79
fc__attribute((__format__ (__printf__, 4, 5)));
80
void CITY_LOG(int level, const struct city *pcity, const char *msg, ...)
81
fc__attribute((__format__ (__printf__, 3, 4)));
82
void UNIT_LOG(int level, const struct unit *punit, const char *msg, ...)
83
fc__attribute((__format__ (__printf__, 3, 4)));
84
void BODYGUARD_LOG(int level, const struct unit *punit, const char *msg);
85
void TIMING_LOG(enum ai_timer timer, enum ai_timer_activity activity);
86
void TIMING_RESULTS(void);
88
#endif /* FC__AILOG_H */