The Battle for Wesnoth  1.19.4+dev
Namespaces | Macros | Functions | Variables
callable_objects.cpp File Reference
#include "ai/formula/ai.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

◆ DBG_AI

#define DBG_AI   LOG_STREAM(debug, log_formula_ai)

Definition at line 30 of file callable_objects.cpp.

◆ ERR_AI

#define ERR_AI   LOG_STREAM(err, log_formula_ai)

Definition at line 33 of file callable_objects.cpp.

◆ LOG_AI

#define LOG_AI   LOG_STREAM(info, log_formula_ai)

Definition at line 31 of file callable_objects.cpp.

◆ WRN_AI

#define WRN_AI   LOG_STREAM(warn, log_formula_ai)

Definition at line 32 of file callable_objects.cpp.

Variable Documentation

◆ log_formula_ai

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