The Battle for Wesnoth  1.19.0-dev
Classes | Namespaces | Typedefs
recruitment.hpp File Reference

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

#include "ai/composite/aspect.hpp"
#include "ai/composite/rca.hpp"
#include "units/map.hpp"
#include <iomanip>
Include dependency graph for recruitment.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ai::default_recruitment::data
 
struct  ai::default_recruitment::cached_combat_value
 
struct  ai::default_recruitment::recruit_job
 
struct  ai::default_recruitment::recruit_limit
 
class  ai::default_recruitment::recruitment_aspect
 
class  ai::default_recruitment::recruitment
 
class  ai::default_recruitment::recruitment::recruit_situation_change_observer
 

Namespaces

 pathfind
 
 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
 

Typedefs

typedef std::map< std::string, double > ai::default_recruitment::score_map
 
typedef std::map< t_translation::terrain_code, int > ai::default_recruitment::terrain_count_map
 
typedef std::map< std::string, int > ai::default_recruitment::count_map
 
typedef std::map< std::string, std::set< cached_combat_value > > ai::default_recruitment::table_row
 
typedef std::map< std::string, table_row > ai::default_recruitment::cache_table
 

Detailed Description

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

Definition in file recruitment.hpp.