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

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

#include "global.hpp"
#include "ai/manager.hpp"
#include "ai/default/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 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)
 

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

#define ERR_AI   LOG_STREAM(err, log_ai)

Definition at line 36 of file attack.cpp.

#define LOG_AI   LOG_STREAM(info, log_ai)

Definition at line 35 of file attack.cpp.

Referenced by ai::attack_analysis::rating().

Variable Documentation

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