The Battle for Wesnoth  1.17.17+dev
Namespaces | Macros | Variables
configuration.cpp File Reference

Managing the AI configuration. More...

#include "ai/configuration.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "game_config_view.hpp"
#include "deprecation.hpp"
#include <vector>
#include <deque>
#include <set>
Include dependency graph for configuration.cpp:

Go to the source code of this file.


 A small explanation about what's going on here: Each action has access to two game_info objects First is 'info' - real information Second is 'subjective info' - AIs perception of what's going on So, when we check_before action, we use 'subjective info' and don't touch real 'info' at all.


#define DBG_AI_CONFIGURATION   LOG_STREAM(debug, log_ai_configuration)
#define LOG_AI_CONFIGURATION   LOG_STREAM(info, log_ai_configuration)
#define WRN_AI_CONFIGURATION   LOG_STREAM(warn, log_ai_configuration)
#define ERR_AI_CONFIGURATION   LOG_STREAM(err, log_ai_configuration)
#define ERR_WML   LOG_STREAM(err, log_wml)


static lg::log_domain ai::log_ai_configuration ("ai/config")
static lg::log_domain ai::log_wml ("wml")
static const std::set< std::string > ai::non_aspect_attributes {"turns", "time_of_day", "engine", "ai_algorithm", "id", "description", "hidden", "mp_rank"}
static const std::set< std::string > ai::just_copy_tags {"engine", "stage", "aspect", "goal", "modify_ai", "micro_ai"}
static const std::set< std::string > ai::old_goal_tags {"target", "target_location", "protect_unit", "protect_location"}

Detailed Description

Managing the AI configuration.

Definition in file configuration.cpp.

Macro Definition Documentation


#define DBG_AI_CONFIGURATION   LOG_STREAM(debug, log_ai_configuration)

Definition at line 37 of file configuration.cpp.


#define ERR_AI_CONFIGURATION   LOG_STREAM(err, log_ai_configuration)

Definition at line 40 of file configuration.cpp.


#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 43 of file configuration.cpp.


#define LOG_AI_CONFIGURATION   LOG_STREAM(info, log_ai_configuration)

Definition at line 38 of file configuration.cpp.


#define WRN_AI_CONFIGURATION   LOG_STREAM(warn, log_ai_configuration)

Definition at line 39 of file configuration.cpp.