The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
manager.cpp File Reference

Managing the AI lifecycle and interface for the rest of Wesnoth. More...

#include "ai/manager.hpp"
#include "config.hpp"
#include "game_events/pump.hpp"
#include "generic_event.hpp"
#include "log.hpp"
#include "map/location.hpp"
#include "resources.hpp"
#include "serialization/string_utils.hpp"
#include "tod_manager.hpp"
#include "ai/composite/ai.hpp"
#include "ai/composite/component.hpp"
#include "ai/composite/engine.hpp"
#include "ai/configuration.hpp"
#include "ai/contexts.hpp"
#include "ai/default/contexts.hpp"
#include "game_end_exceptions.hpp"
#include "ai/game_info.hpp"
#include "game_config.hpp"
#include "ai/lua/aspect_advancements.hpp"
#include "ai/registry.hpp"
#include <algorithm>
#include <cassert>
#include <iterator>
#include <map>
#include <ostream>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#include <SDL_timer.h>
Include dependency graph for manager.cpp:

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_MANAGER   LOG_STREAM(debug, log_ai_manager)
 
#define LOG_AI_MANAGER   LOG_STREAM(info, log_ai_manager)
 
#define ERR_AI_MANAGER   LOG_STREAM(err, log_ai_manager)
 
#define DBG_AI_MOD   LOG_STREAM(debug, log_ai_mod)
 
#define LOG_AI_MOD   LOG_STREAM(info, log_ai_mod)
 
#define WRN_AI_MOD   LOG_STREAM(warn, log_ai_mod)
 
#define ERR_AI_MOD   LOG_STREAM(err, log_ai_mod)
 

Variables

static lg::log_domain ai::log_ai_manager ("ai/manager")
 
static lg::log_domain ai::log_ai_mod ("ai/mod")
 

Detailed Description

Managing the AI lifecycle and interface for the rest of Wesnoth.

Definition in file manager.cpp.

Macro Definition Documentation

#define DBG_AI_MANAGER   LOG_STREAM(debug, log_ai_manager)

Definition at line 65 of file manager.cpp.

Referenced by ai::holder::holder(), and ai::manager::play_turn().

#define DBG_AI_MOD   LOG_STREAM(debug, log_ai_mod)

Definition at line 70 of file manager.cpp.

Referenced by ai::holder::modify_ai().

#define ERR_AI_MANAGER   LOG_STREAM(err, log_ai_manager)

Definition at line 67 of file manager.cpp.

Referenced by ai::manager::add_ai_for_side_from_file(), and ai::holder::init().

#define ERR_AI_MOD   LOG_STREAM(err, log_ai_mod)

Definition at line 73 of file manager.cpp.

Referenced by ai::holder::modify_ai().

#define LOG_AI_MANAGER   LOG_STREAM(info, log_ai_manager)

Definition at line 66 of file manager.cpp.

Referenced by ai::manager::evaluate_command(), and ai::holder::~holder().

#define LOG_AI_MOD   LOG_STREAM(info, log_ai_mod)

Definition at line 71 of file manager.cpp.

Referenced by ai::holder::modify_ai().

#define WRN_AI_MOD   LOG_STREAM(warn, log_ai_mod)

Definition at line 72 of file manager.cpp.