The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
ai::default_recruitment::recruit_job Struct Reference

#include <recruitment.hpp>

Inheritance diagram for ai::default_recruitment::recruit_job:

Public Member Functions

 recruit_job (std::vector< std::string > t, std::string L, std::string id, int n, int i, bool s, bool p, bool b)
 
config to_config () const
 
std::string get_id () const
 
std::string get_name () const
 
std::string get_engine () const
 
- Public Member Functions inherited from ai::component
 component ()
 
virtual ~component ()
 
virtual componentget_child (const path_element &child)
 
virtual std::vector< component * > get_children (const std::string &type)
 
virtual std::vector< std::string > get_children_types ()
 
virtual bool change_child (const path_element &child, const config &cfg)
 
virtual bool add_child (const path_element &child, const config &cfg)
 
virtual bool delete_child (const path_element &child)
 
property_handler_mapproperty_handlers ()
 

Public Attributes

std::vector< std::string > types
 
std::string leader
 
std::string id
 
int number
 
int importance
 
bool total
 
bool pattern
 
bool blocker
 

Detailed Description

Definition at line 96 of file recruitment.hpp.

Constructor & Destructor Documentation

◆ recruit_job()

ai::default_recruitment::recruit_job::recruit_job ( std::vector< std::string >  t,
std::string  L,
std::string  id,
int  n,
int  i,
bool  s,
bool  p,
bool  b 
)
inline

Definition at line 101 of file recruitment.hpp.

Member Function Documentation

◆ get_engine()

std::string ai::default_recruitment::recruit_job::get_engine ( ) const
inlinevirtual

Implements ai::component.

Definition at line 128 of file recruitment.hpp.

◆ get_id()

std::string ai::default_recruitment::recruit_job::get_id ( ) const
inlinevirtual

Implements ai::component.

Definition at line 126 of file recruitment.hpp.

References id.

◆ get_name()

std::string ai::default_recruitment::recruit_job::get_name ( ) const
inlinevirtual

Implements ai::component.

Definition at line 127 of file recruitment.hpp.

◆ to_config()

config ai::default_recruitment::recruit_job::to_config ( ) const
inline

Definition at line 106 of file recruitment.hpp.

References blocker, id, importance, utils::join(), leader, number, pattern, total, and types.

Member Data Documentation

◆ blocker

bool ai::default_recruitment::recruit_job::blocker

Definition at line 100 of file recruitment.hpp.

Referenced by to_config().

◆ id

std::string ai::default_recruitment::recruit_job::id

Definition at line 98 of file recruitment.hpp.

Referenced by get_id(), and to_config().

◆ importance

int ai::default_recruitment::recruit_job::importance

Definition at line 99 of file recruitment.hpp.

Referenced by to_config().

◆ leader

std::string ai::default_recruitment::recruit_job::leader

Definition at line 98 of file recruitment.hpp.

Referenced by to_config().

◆ number

int ai::default_recruitment::recruit_job::number

Definition at line 99 of file recruitment.hpp.

Referenced by to_config().

◆ pattern

bool ai::default_recruitment::recruit_job::pattern

Definition at line 100 of file recruitment.hpp.

Referenced by to_config().

◆ total

bool ai::default_recruitment::recruit_job::total

Definition at line 100 of file recruitment.hpp.

Referenced by to_config().

◆ types

std::vector<std::string> ai::default_recruitment::recruit_job::types

Definition at line 97 of file recruitment.hpp.

Referenced by to_config().


The documentation for this struct was generated from the following file: