Generate race-specific unit-names. More...
#include "global.hpp"
#include "units/race.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode_cast.hpp"
#include "utils/markov_generator.hpp"
#include "utils/context_free_grammar_generator.hpp"
Go to the source code of this file.
Functions | |
static const config & | empty_traits () |
static const config & | empty_topics () |
std::string const & | gender_string (unit_race::GENDER gender) |
unit_race::GENDER | string_gender (const std::string &str, unit_race::GENDER def) |
Generate race-specific unit-names.
Definition in file race.cpp.
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 | ||
) |
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().