36 const std::string&
id()
const {
return id_; }
80 std::array<t_string, NUM_GENDERS>
name_;
103 const std::string & female_key,
const std::string & default_key);
Variant for storing WML attributes.
A config object defines a single node in a WML file, with access to child nodes.
boost::iterator_range< const_child_iterator > const_child_itors
const std::string & id() const
bool uses_global_traits() const
std::string get_icon_path_stem() const
Gets this race's icon path without state/size suffix and extension.
const std::string & editor_icon() const
static const unit_race null_race
Dummy race used when a race is not yet known.
std::string undead_variation_
const t_string & name(GENDER gender=MALE) const
const std::string & undead_variation() const
const t_string & plural_name() const
const t_string & description() const
const config & get_cfg() const
const config::const_child_itors & additional_topics() const
config::const_child_itors topics_
std::string generate_name(GENDER gender) const
unit_race()
Only used to construct null_race.
const std::string & help_taxonomy() const
std::array< std::shared_ptr< name_generator >, NUM_GENDERS > name_generator_
unsigned int num_traits() const
std::array< t_string, NUM_GENDERS > name_
config::const_child_itors traits_
const config::const_child_itors & additional_traits() const
static const std::string s_female
Standard string id (not translatable) for FEMALE.
static const std::string s_male
Standard string id (not translatable) for MALE.
std::string help_taxonomy_
const name_generator & generator(GENDER gender) const
Definitions for the interface to Wesnoth Markup Language (WML).
const std::string & gender_string(unit_race::GENDER gender)
unit_race::GENDER string_gender(const std::string &str, unit_race::GENDER def=unit_race::MALE)
NOT_DANGLING const config::attribute_value & gender_value(const config &cfg, unit_race::GENDER gender, const std::string &male_key, const std::string &female_key, const std::string &default_key)
Chooses a value from the given config based on gender.
std::map< std::string, unit_race > race_map