31 #define DBG_AI_TESTING LOG_STREAM(debug, log_ai_testing)
32 #define LOG_AI_TESTING LOG_STREAM(info, log_ai_testing)
33 #define ERR_AI_TESTING LOG_STREAM(err, log_ai_testing)
53 int _gold = current_team.
gold();
54 int _villages = current_team.
villages().size();
65 c[
"side"] =
static_cast<int>(side);
66 c[
"turn"] = _turn_number;
69 c[
"units_cost"] = _units_cost;
71 c[
"villages"] = _villages;
84 for(std::set<unsigned int>::const_iterator
w = winners.begin();
w != winners.end(); ++
w) {
107 int side = tm.side();
Managing the AIs lifecycle - headers TODO: Refactor history handling and internal commands.
std::string get_active_ai_identifier_for_side(side_number side)
Gets AI algorithm identifier for active AI of the given side.
static manager & get_singleton()
static void log_turn_end(unsigned int side)
static void log_victory(const std::set< unsigned int > &teams)
static void log_game_end()
static void log_turn(const char *msg, unsigned int side)
static void log_game_start()
static void log_turn_start(unsigned int side)
A config object defines a single node in a WML file, with access to child nodes.
int side_units(int side_num) const
Returns the number of units of the side side_num.
int side_units_cost(int side_num) const
Returns the total cost of units of side side_num.
void add_log_data(const std::string &key, const std::string &var)
This class stores all the data for a single 'side' (in game nomenclature).
const std::set< map_location > & villages() const
Interfaces for manipulating version numbers of engine, add-ons, etc.
Standard logging facilities (interface).
const std::string revision
::tod_manager * tod_manager
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
static lg::log_domain log_ai_testing("ai/testing")
Gather statistics important for AI testing and output them.