The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Macros | Variables
recruitment.cpp File Reference

Recruitment Engine by flix See https://wiki.wesnoth.org/AI_Recruitment. More...

#include "ai/default/recruitment.hpp"
#include "ai/actions.hpp"
#include "ai/composite/rca.hpp"
#include "ai/manager.hpp"
#include "actions/attack.hpp"
#include "attack_prediction.hpp"
#include "display.hpp"
#include "game_board.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "map/label.hpp"
#include "pathfind/pathfind.hpp"
#include "pathutils.hpp"
#include "random.hpp"
#include "resources.hpp"
#include "team.hpp"
#include "tod_manager.hpp"
#include "units/filter.hpp"
#include "units/map.hpp"
#include "units/types.hpp"
#include "units/unit.hpp"
#include "variable.hpp"
#include <cmath>
Include dependency graph for recruitment.cpp:

Go to the source code of this file.

Classes

struct  ai::default_recruitment::attack_simulation
 For Combat Analysis. More...
 

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::default_recruitment
 

Macros

#define LOG_AI_RECRUITMENT   LOG_STREAM(info, log_ai_recruitment)
 
#define ERR_AI_RECRUITMENT   LOG_STREAM(err, log_ai_recruitment)
 
#define ERR_WML   LOG_STREAM(err, log_wml)
 

Variables

static lg::log_domain log_ai_recruitment ("ai/recruitment")
 
static lg::log_domain log_wml ("wml")
 

Detailed Description

Recruitment Engine by flix See https://wiki.wesnoth.org/AI_Recruitment.

Definition in file recruitment.cpp.

Macro Definition Documentation

◆ ERR_AI_RECRUITMENT

#define ERR_AI_RECRUITMENT   LOG_STREAM(err, log_ai_recruitment)

Definition at line 50 of file recruitment.cpp.

◆ ERR_WML

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 53 of file recruitment.cpp.

◆ LOG_AI_RECRUITMENT

#define LOG_AI_RECRUITMENT   LOG_STREAM(info, log_ai_recruitment)

Definition at line 49 of file recruitment.cpp.

Variable Documentation

◆ log_ai_recruitment

lg::log_domain log_ai_recruitment("ai/recruitment") ( "ai/recruitment"  )
static

◆ log_wml

lg::log_domain log_wml("wml") ( "wml"  )
static