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

Candidate actions framework. More...

#include "ai/composite/ai.hpp"
#include "ai/composite/engine.hpp"
#include "ai/composite/rca.hpp"
#include "log.hpp"
Include dependency graph for rca.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 DBG_AI_STAGE_RCA   LOG_STREAM(debug, log_ai_stage_rca)
#define LOG_AI_STAGE_RCA   LOG_STREAM(info, log_ai_stage_rca)
#define ERR_AI_STAGE_RCA   LOG_STREAM(err, log_ai_stage_rca)


std::ostream & ai::operator<< (std::ostream &s, ai::candidate_action const &ca)


static lg::log_domain ai::log_ai_stage_rca ("ai/stage/rca")

Detailed Description

Candidate actions framework.

Definition in file rca.cpp.

Macro Definition Documentation

#define DBG_AI_STAGE_RCA   LOG_STREAM(debug, log_ai_stage_rca)

Definition at line 28 of file rca.cpp.

#define ERR_AI_STAGE_RCA   LOG_STREAM(err, log_ai_stage_rca)

Definition at line 30 of file rca.cpp.

Referenced by ai::candidate_action_factory::is_duplicate().

#define LOG_AI_STAGE_RCA   LOG_STREAM(info, log_ai_stage_rca)

Definition at line 29 of file rca.cpp.