The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Variables
contexts.cpp File Reference

Helper functions for the object which operates in the context of AI for specific side This is part of AI interface. More...

#include "ai/default/contexts.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "resources.hpp"
#include "team.hpp"
#include "units/unit.hpp"
#include "ai/composite/goal.hpp"
#include "pathfind/pathfind.hpp"
Include dependency graph for contexts.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 DBG_AI   LOG_STREAM(debug, log_ai)
 
#define LOG_AI   LOG_STREAM(info, log_ai)
 
#define WRN_AI   LOG_STREAM(warn, log_ai)
 
#define ERR_AI   LOG_STREAM(err, log_ai)
 

Variables

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

Detailed Description

Helper functions for the object which operates in the context of AI for specific side This is part of AI interface.

Definition in file contexts.cpp.

Macro Definition Documentation

◆ DBG_AI

#define DBG_AI   LOG_STREAM(debug, log_ai)

Definition at line 34 of file contexts.cpp.

◆ ERR_AI

#define ERR_AI   LOG_STREAM(err, log_ai)

Definition at line 37 of file contexts.cpp.

◆ LOG_AI

#define LOG_AI   LOG_STREAM(info, log_ai)

Definition at line 35 of file contexts.cpp.

◆ WRN_AI

#define WRN_AI   LOG_STREAM(warn, log_ai)

Definition at line 36 of file contexts.cpp.

Variable Documentation

◆ log_ai

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