The Battle for Wesnoth  1.19.5+dev
Namespaces | Macros | Functions | Variables
attack.cpp File Reference

Calculate & analyze attacks of the default ai. More...

#include "ai/manager.hpp"
#include "ai/default/contexts.hpp"
#include "ai/actions.hpp"
#include "ai/composite/contexts.hpp"
#include "actions/attack.hpp"
#include "attack_prediction.hpp"
#include "game_config.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "formula/callable_objects.hpp"
#include "resources.hpp"
#include "game_board.hpp"
Include dependency graph for attack.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 LOG_AI   LOG_STREAM(info, log_ai)
 
#define ERR_AI   LOG_STREAM(err, log_ai)
 

Functions

ai_contextai::get_ai_context (wfl::const_formula_callable_ptr for_fai)
 

Variables

static lg::log_domain log_ai ("ai/attack")
 

Detailed Description

Calculate & analyze attacks of the default ai.

Definition in file attack.cpp.

Macro Definition Documentation

◆ ERR_AI

#define ERR_AI   LOG_STREAM(err, log_ai)

Definition at line 39 of file attack.cpp.

◆ LOG_AI

#define LOG_AI   LOG_STREAM(info, log_ai)

Definition at line 38 of file attack.cpp.

Variable Documentation

◆ log_ai

lg::log_domain log_ai("ai/attack") ( "ai/attack"  )
static