The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
callable_objects.cpp File Reference
#include "ai/formula/ai.hpp"
#include "attack_prediction.hpp"
#include "game_board.hpp"
#include "ai/formula/callable_objects.hpp"
#include "ai/composite/contexts.hpp"
#include "resources.hpp"
#include "map/map.hpp"
#include "ai/game_info.hpp"
#include "ai/actions.hpp"
#include "units/formula_manager.hpp"
#include "units/unit.hpp"
#include "log.hpp"
#include "menu_events.hpp"
Include dependency graph for callable_objects.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.
 
 wfl
 

Macros

#define DBG_AI   LOG_STREAM(debug, log_formula_ai)
 
#define LOG_AI   LOG_STREAM(info, log_formula_ai)
 
#define WRN_AI   LOG_STREAM(warn, log_formula_ai)
 
#define ERR_AI   LOG_STREAM(err, log_formula_ai)
 

Functions

ai_contextai::get_ai_context (wfl::const_formula_callable_ptr for_fai)
 

Variables

static lg::log_domain log_formula_ai ("ai/engine/fai")
 

Macro Definition Documentation

#define DBG_AI   LOG_STREAM(debug, log_formula_ai)

Definition at line 30 of file callable_objects.cpp.

#define ERR_AI   LOG_STREAM(err, log_formula_ai)

Definition at line 33 of file callable_objects.cpp.

Referenced by wfl::set_unit_var_callable::execute_self().

#define LOG_AI   LOG_STREAM(info, log_formula_ai)
#define WRN_AI   LOG_STREAM(warn, log_formula_ai)

Definition at line 32 of file callable_objects.cpp.

Variable Documentation

lg::log_domain log_formula_ai("ai/engine/fai")
static