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

#include <recruitment.hpp>

Inheritance diagram for ai::default_recruitment::recruit_limit:

Public Member Functions

 recruit_limit (std::vector< std::string > t, std::string id, int lim)
 
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 id
 
int limit
 

Detailed Description

Definition at line 131 of file recruitment.hpp.

Constructor & Destructor Documentation

◆ recruit_limit()

ai::default_recruitment::recruit_limit::recruit_limit ( std::vector< std::string >  t,
std::string  id,
int  lim 
)
inline

Definition at line 135 of file recruitment.hpp.

Member Function Documentation

◆ get_engine()

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

Implements ai::component.

Definition at line 151 of file recruitment.hpp.

◆ get_id()

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

Implements ai::component.

Definition at line 149 of file recruitment.hpp.

References id.

◆ get_name()

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

Implements ai::component.

Definition at line 150 of file recruitment.hpp.

◆ to_config()

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

Definition at line 138 of file recruitment.hpp.

References id, utils::join(), limit, and types.

Member Data Documentation

◆ id

std::string ai::default_recruitment::recruit_limit::id

Definition at line 133 of file recruitment.hpp.

Referenced by get_id(), and to_config().

◆ limit

int ai::default_recruitment::recruit_limit::limit

Definition at line 134 of file recruitment.hpp.

Referenced by to_config().

◆ types

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

Definition at line 132 of file recruitment.hpp.

Referenced by to_config().


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