The Battle for Wesnoth  1.19.1+dev
Namespaces | Macros | Variables
stage_side_formulas.cpp File Reference

Defines formula ai side formulas stage. More...

#include "ai/formula/stage_side_formulas.hpp"
#include "ai/formula/ai.hpp"
#include "formula/formula.hpp"
#include "log.hpp"
Include dependency graph for stage_side_formulas.cpp:

Go to the source code of this file.


 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.


#define LOG_AI   LOG_STREAM(info, log_ai)
#define WRN_AI   LOG_STREAM(warn, log_ai)
#define ERR_AI   LOG_STREAM(err, log_ai)


static lg::log_domain log_ai ("ai/stage/side_formulas")

Detailed Description

Defines formula ai side formulas stage.

Definition in file stage_side_formulas.cpp.

Macro Definition Documentation


#define ERR_AI   LOG_STREAM(err, log_ai)

Definition at line 30 of file stage_side_formulas.cpp.


#define LOG_AI   LOG_STREAM(info, log_ai)

Definition at line 28 of file stage_side_formulas.cpp.


#define WRN_AI   LOG_STREAM(warn, log_ai)

Definition at line 29 of file stage_side_formulas.cpp.

Variable Documentation

◆ log_ai

lg::log_domain log_ai("ai/stage/side_formulas") ( "ai/stage/side_formulas"  )