15 #ifndef RACE_HPP_INCLUDED
16 #define RACE_HPP_INCLUDED
20 #include <boost/smart_ptr/shared_ptr.hpp>
73 typedef std::map<std::string,unit_race>
race_map;
unit_race::GENDER string_gender(const std::string &str, unit_race::GENDER def=unit_race::MALE)
static const std::string s_male
Standard string id (not translatable) for MALE.
bool uses_global_traits() const
const config::const_child_itors & additional_topics() const
const t_string & name(GENDER gender=MALE) const
const std::string & undead_variation() const
boost::shared_ptr< name_generator > name_generator_[NUM_GENDERS]
std::string const & gender_string(unit_race::GENDER gender)
std::string undead_variation_
const std::string & id() const
t_string name_[NUM_GENDERS]
Definitions for the interface to Wesnoth Markup Language (WML).
std::pair< const_child_iterator, const_child_iterator > const_child_itors
const config::const_child_itors & additional_traits() const
static const std::string s_female
Standard string id (not translatable) for FEMALE.
static const unit_race null_race
Dummy race used when a race is not yet known.
const t_string & description() const
const t_string & plural_name() const
config::const_child_itors topics_
const name_generator & generator(GENDER gender) const
std::string generate_name(GENDER gender) const
unit_race()
Only used to construct null_race.
config::const_child_itors traits_
unsigned int num_traits() const
std::map< std::string, unit_race > race_map
const config & get_cfg() const
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string