Go to the source code of this file.
Classes | |
class | unit_race |
Typedefs | |
typedef std::map< std::string, unit_race > | race_map |
Functions | |
unit_race::GENDER | string_gender (const std::string &str, unit_race::GENDER def=unit_race::MALE) |
std::string const & | gender_string (unit_race::GENDER gender) |
typedef std::map<std::string,unit_race> race_map |
std::string const& gender_string | ( | unit_race::GENDER | gender | ) |
Definition at line 151 of file race.cpp.
References unit_race::FEMALE, unit_race::MALE, unit_race::s_female, and unit_race::s_male.
Referenced by unit::add_trait_description(), dialogs::unit_types_preview_pane::get_details(), unit_callable::get_value(), impl_unit_get(), gui2::tunit_preview_pane::set_displayed_type(), and unit::write().
unit_race::GENDER string_gender | ( | const std::string & | str, |
unit_race::GENDER | def = unit_race::MALE |
||
) |
Definition at line 161 of file race.cpp.
References unit_race::FEMALE, unit_race::MALE, unit_race::s_female, and unit_race::s_male.
Referenced by unit_type::build_help_index(), generate_gender(), basic_unit_filter_impl::internal_matches_filter(), and SYNCED_COMMAND_HANDLER_FUNCTION().