#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 |
Definition at line 48 of file recruitment.hpp.
|
inlineexplicit |
Definition at line 61 of file recruitment.hpp.
|
inline |
Definition at line 70 of file recruitment.hpp.
References get_score_sum(), and scores.
Referenced by ai::default_recruitment::recruitment::get_best_recruit_from_scores().
|
inline |
Definition at line 63 of file recruitment.hpp.
References scores.
Referenced by get_normalized_scores().
std::string ai::default_recruitment::data::to_string | ( | ) | const |
Definition at line 103 of file recruitment.cpp.
References leader, ratio_score, recruit_count, s, and scores.
Referenced by ai::default_recruitment::recruitment::execute().
bool ai::default_recruitment::data::in_danger |
Definition at line 59 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::execute().
unit_map::const_iterator ai::default_recruitment::data::leader |
Definition at line 49 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::execute_recall(), ai::default_recruitment::recruitment::execute_recruit(), ai::default_recruitment::recruitment::get_appropriate_recall(), ai::default_recruitment::recruitment::leader_matches_job(), and to_string().
double ai::default_recruitment::data::ratio_score |
Definition at line 56 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::execute(), ai::default_recruitment::recruitment::get_best_leader_from_ratio_scores(), and to_string().
int ai::default_recruitment::data::recruit_count |
Definition at line 58 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::execute_recall(), ai::default_recruitment::recruitment::execute_recruit(), ai::default_recruitment::recruitment::get_best_leader_from_ratio_scores(), and to_string().
std::set<std::string> ai::default_recruitment::data::recruits |
Definition at line 50 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::execute(), ai::default_recruitment::recruitment::get_random_pattern_type_if_exists(), and ai::default_recruitment::recruitment::leader_matches_job().
score_map ai::default_recruitment::data::scores |
Definition at line 51 of file recruitment.hpp.
Referenced by ai::default_recruitment::recruitment::do_randomness(), ai::default_recruitment::recruitment::do_similarity_penalty(), ai::default_recruitment::recruitment::execute(), get_normalized_scores(), get_score_sum(), ai::default_recruitment::recruitment::handle_recruitment_more(), and to_string().