The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 "wml_exception.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)


static lg::log_domain ai::log_ai_configuration ("ai/config")
static const std::set
< std::string > 
ai::non_aspect_attributes {"turns", "time_of_day", "engine", "ai_algorithm", "id", "description"}
static const std::set
< std::string > 
ai::just_copy_tags {"engine", "stage", "aspect", "goal", "modify_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)
#define ERR_AI_CONFIGURATION   LOG_STREAM(err, log_ai_configuration)
#define LOG_AI_CONFIGURATION   LOG_STREAM(info, log_ai_configuration)
#define WRN_AI_CONFIGURATION   LOG_STREAM(warn, log_ai_configuration)

Definition at line 38 of file configuration.cpp.

Referenced by ai::configuration::parse_side_config().