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

Defines formula ai unit formulas stage. More...

#include "ai/formula/stage_unit_formulas.hpp"
#include "ai/formula/ai.hpp"
#include "formula/formula.hpp"
#include "formula/function.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "resources.hpp"
#include "units/unit.hpp"
#include "units/formula_manager.hpp"
Include dependency graph for stage_unit_formulas.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_formula_ai)
 
#define WRN_AI   LOG_STREAM(warn, log_formula_ai)
 
#define ERR_AI   LOG_STREAM(err, log_formula_ai)
 

Variables

static lg::log_domain log_formula_ai ("ai/stage/unit_formulas")
 

Detailed Description

Defines formula ai unit formulas stage.

Definition in file stage_unit_formulas.cpp.

Macro Definition Documentation

#define ERR_AI   LOG_STREAM(err, log_formula_ai)

Definition at line 35 of file stage_unit_formulas.cpp.

Referenced by ai::stage_unit_formulas::do_play_stage().

#define LOG_AI   LOG_STREAM(info, log_formula_ai)

Definition at line 33 of file stage_unit_formulas.cpp.

#define WRN_AI   LOG_STREAM(warn, log_formula_ai)

Definition at line 34 of file stage_unit_formulas.cpp.

Referenced by ai::stage_unit_formulas::do_play_stage().

Variable Documentation

lg::log_domain log_formula_ai("ai/stage/unit_formulas")
static