The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
ai::default_recruitment::data Struct Reference

#include <recruitment.hpp>

Public Member Functions

 data (const unit_map::const_iterator leader)
double get_score_sum () const
score_map get_normalized_scores () const
std::string to_string () const

Public Attributes

unit_map::const_iterator leader
std::set< std::string > recruits
score_map scores
double ratio_score
int recruit_count
bool in_danger

Detailed Description

Definition at line 54 of file recruitment.hpp.

Constructor & Destructor Documentation

ai::default_recruitment::data::data ( const unit_map::const_iterator  leader)

Definition at line 67 of file recruitment.hpp.

Member Function Documentation

score_map ai::default_recruitment::data::get_normalized_scores ( ) const
double ai::default_recruitment::data::get_score_sum ( ) const

Definition at line 69 of file recruitment.hpp.

Referenced by get_normalized_scores().

std::string ai::default_recruitment::data::to_string ( ) const

Definition at line 87 of file recruitment.hpp.

References s.

Referenced by ai::default_recruitment::recruitment::execute().

Member Data Documentation

bool ai::default_recruitment::data::in_danger

Definition at line 65 of file recruitment.hpp.

Referenced by ai::default_recruitment::recruitment::execute().

unit_map::const_iterator ai::default_recruitment::data::leader
double ai::default_recruitment::data::ratio_score
int ai::default_recruitment::data::recruit_count
std::set<std::string> ai::default_recruitment::data::recruits
score_map ai::default_recruitment::data::scores

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