14 #ifndef FLG_MANAGER_HPP_INCLUDED
15 #define FLG_MANAGER_HPP_INCLUDED
35 flg_manager(
const std::vector<const config*>& era_factions,
36 const config& side,
const bool faction_lock,
const bool leader_lock,
const config * default_leader_cfg_
const std::vector< const config * > & choosable_factions() const
std::string default_leader_type_
void set_current_faction(const config &faction)
static const config & get_default_faction(const config &cfg)
const std::vector< std::string > & choosable_leaders() const
void set_current_leader(const unsigned index)
int faction_index(const config &faction) const
void update_available_factions()
void set_current_gender(const unsigned index)
void operator=(const flg_manager &)
FLG stands for faction, leader and gender.
int leader_index(const std::string &leader) const
returns -1 if no leader with that name was found
std::string default_leader_gender_
void reset_leader_combo(gui::combo &combo_leader, const std::string &color) const
int current_gender_index() const
flg_manager(const std::vector< const config * > &era_factions, const config &side, const bool faction_lock, const bool leader_lock, const bool saved_game)
void append_leaders_from_faction(const config *faction)
const std::string & current_gender() const
std::vector< const config * > available_factions_
std::vector< const config * > choosable_factions_
int gender_index(const std::string &gender) const
returns -1 if no gender with that name was found
const bool use_map_settings_
const bool has_no_recruits_
void reset_gender_combo(gui::combo &combo_gender, const std::string &color) const
std::string current_leader_
std::string get_RC_suffix(const std::string &unit_color, const std::string &color)
int current_faction_index() const
int find_suitable_faction() const
void set_current_faction(const unsigned index)
std::string current_gender_
std::vector< std::string > choosable_genders_
const config * default_leader_cfg() const
static std::vector< std::string > get_original_recruits(const config &cfg)
const config & current_faction() const
const std::vector< const config * > & era_factions_
const std::string random_enemy_picture("units/random-dice.png")
const std::string & current_leader() const
const std::vector< std::string > & choosable_genders() const
void update_available_genders()
void update_choosable_genders()
void update_choosable_leaders()
std::vector< std::string > available_genders_
int current_leader_index() const
void update_available_leaders()
void resolve_random(rand_rng::mt_rng &rng, const std::vector< std::string > &avoid)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
std::vector< std::string > available_leaders_
void update_choosable_factions()
std::vector< std::string > choosable_leaders_
const config * current_faction_