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

Strategic movement routine, taken from default AI. More...

#include "ai/default/ca_move_to_targets.hpp"
#include "ai/actions.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "resources.hpp"
#include "units/unit.hpp"
#include "terrain/filter.hpp"
#include "pathfind/pathfind.hpp"
#include "pathfind/teleport.hpp"
#include <deque>
Include dependency graph for ca_move_to_targets.cpp:

Go to the source code of this file.

Classes

struct  ai::ai_default_rca::move_cost_calculator
 
class  ai::ai_default_rca::remove_wrong_targets
 
struct  ai::ai_default_rca::rated_target
 
struct  ai::ai_default_rca::rated_target_comparer
 

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_ca_move_to_targets)
 
#define LOG_AI   LOG_STREAM(info, log_ai_testing_ca_move_to_targets)
 
#define WRN_AI   LOG_STREAM(warn, log_ai_testing_ca_move_to_targets)
 
#define ERR_AI   LOG_STREAM(err, log_ai_testing_ca_move_to_targets)
 

Variables

static lg::log_domain ai::ai_default_rca::log_ai_testing_ca_move_to_targets ("ai/ca/move_to_targets")
 

Detailed Description

Strategic movement routine, taken from default AI.

Definition in file ca_move_to_targets.cpp.

Macro Definition Documentation

◆ DBG_AI

#define DBG_AI   LOG_STREAM(debug, log_ai_testing_ca_move_to_targets)

Definition at line 40 of file ca_move_to_targets.cpp.

◆ ERR_AI

#define ERR_AI   LOG_STREAM(err, log_ai_testing_ca_move_to_targets)

Definition at line 43 of file ca_move_to_targets.cpp.

◆ LOG_AI

#define LOG_AI   LOG_STREAM(info, log_ai_testing_ca_move_to_targets)

Definition at line 41 of file ca_move_to_targets.cpp.

◆ WRN_AI

#define WRN_AI   LOG_STREAM(warn, log_ai_testing_ca_move_to_targets)

Definition at line 42 of file ca_move_to_targets.cpp.