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 "config_assign.hpp"
#include <vector>
#include <deque>
#include <set>
Go to the source code of this file.
Namespaces | |
ai | |
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. | |
Macros | |
#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) |
Variables | |
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"} |
Managing the AI configuration.
Definition in file configuration.cpp.
#define DBG_AI_CONFIGURATION LOG_STREAM(debug, log_ai_configuration) |
Definition at line 37 of file configuration.cpp.
Referenced by ai::configuration::get_available_ais(), and ai::configuration::parse_side_config().
#define ERR_AI_CONFIGURATION LOG_STREAM(err, log_ai_configuration) |
Definition at line 40 of file configuration.cpp.
Referenced by ai::configuration::get_side_config_from_file(), ai::configuration::init(), and ai::configuration::parse_side_config().
#define LOG_AI_CONFIGURATION LOG_STREAM(info, log_ai_configuration) |
Definition at line 38 of file configuration.cpp.
Referenced by ai::configuration::get_side_config_from_file(), ai::configuration::init(), and ai::configuration::parse_side_config().
#define WRN_AI_CONFIGURATION LOG_STREAM(warn, log_ai_configuration) |
Definition at line 39 of file configuration.cpp.
Referenced by ai::configuration::parse_side_config().