The Battle for Wesnoth  1.19.0-dev
Namespaces | Macros | Functions | Variables
aspect_attacks.cpp File Reference

Stage: fallback to other AI. More...

#include "ai/default/aspect_attacks.hpp"
#include "actions/attack.hpp"
#include "ai/manager.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "lua/wrapper_lauxlib.h"
#include "map/map.hpp"
#include "pathfind/pathfind.hpp"
#include "resources.hpp"
#include "scripting/lua_unit.hpp"
#include "team.hpp"
#include "units/filter.hpp"
#include "units/unit.hpp"
Include dependency graph for aspect_attacks.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.
 
 ai::ai_default_rca
 

Macros

#define DBG_AI   LOG_STREAM(debug, log_ai_testing_aspect_attacks)
 
#define LOG_AI   LOG_STREAM(info, log_ai_testing_aspect_attacks)
 
#define ERR_AI   LOG_STREAM(err, log_ai_testing_aspect_attacks)
 

Functions

static bool ai::call_lua_filter_fcn (lua_State *L, const unit &u, int idx)
 

Variables

static lg::log_domain ai::ai_default_rca::log_ai_testing_aspect_attacks ("ai/aspect/attacks")
 

Detailed Description

Stage: fallback to other AI.

Definition in file aspect_attacks.cpp.

Macro Definition Documentation

◆ DBG_AI

#define DBG_AI   LOG_STREAM(debug, log_ai_testing_aspect_attacks)

Definition at line 41 of file aspect_attacks.cpp.

◆ ERR_AI

#define ERR_AI   LOG_STREAM(err, log_ai_testing_aspect_attacks)

Definition at line 43 of file aspect_attacks.cpp.

◆ LOG_AI

#define LOG_AI   LOG_STREAM(info, log_ai_testing_aspect_attacks)

Definition at line 42 of file aspect_attacks.cpp.