The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
unit_type Class Reference

#include <types.hpp>

Classes

class  error
 

Public Types

enum  BUILD_STATUS {
  NOT_BUILT, CREATED, VARIATIONS, HELP_INDEXED,
  FULL
}
 Records the status of the lazy building of unit types. More...
 

Public Member Functions

 unit_type (const config &cfg, const std::string &parent_id="")
 Creates a unit type for the given config, but delays its build till later. More...
 
 unit_type (const unit_type &o)
 
 ~unit_type ()
 
void build (BUILD_STATUS status, const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits)
 Performs a build of this to the indicated stage. More...
 
void build (BUILD_STATUS status, const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits) const
 Performs a build of this to the indicated stage. More...
 
void add_advancement (const unit_type &advance_to, int experience)
 Adds an additional advancement path to a unit type. More...
 
std::set< std::stringadvancement_tree () const
 Get the advancement tree Build a set of unit type's id of this unit type's advancement tree. More...
 
const std::vector< std::string > & advances_to () const
 
const std::vector< std::stringadvances_from () const
 
config::const_child_itors modification_advancements () const
 
const unit_typeget_gender_unit_type (std::string gender) const
 
const unit_typeget_gender_unit_type (unit_race::GENDER gender) const
 
const unit_typeget_variation (const std::string &id) const
 
const std::stringundead_variation () const
 Info on the type of unit that the unit reanimates as. More...
 
unsigned int num_traits () const
 
const t_stringtype_name () const
 The name of the unit in the current language setting. More...
 
const std::stringid () const
 The id for this unit_type. More...
 
const std::string log_id () const
 A variant on id() that is more descriptive, for use with message logging. More...
 
const std::stringbase_id () const
 The id of the original type from which this (variation) descended. More...
 
t_string unit_description () const
 
int hitpoints () const
 
double hp_bar_scaling () const
 
double xp_bar_scaling () const
 
int level () const
 
int recall_cost () const
 
int movement () const
 
int vision () const
 
int vision (bool base_value) const
 If base_value is set to true, do not fall back to movement(). More...
 
int jamming () const
 
int max_attacks () const
 
int cost () const
 
const std::stringdefault_variation () const
 
const std::stringvariation_name () const
 
const std::stringusage () const
 
const std::stringimage () const
 
const std::stringicon () const
 
const std::stringsmall_profile () const
 
const std::stringbig_profile () const
 
std::string halo () const
 
std::string ellipse () const
 
bool generate_name () const
 
const std::vector
< unit_animation > & 
animations () const
 
const std::stringflag_rgb () const
 
std::vector< attack_typeattacks () const
 
const movetypemovement_type () const
 
int experience_needed (bool with_acceleration=true) const
 
 MAKE_ENUM (ALIGNMENT,(LAWFUL, N_("lawful"))(NEUTRAL, N_("neutral"))(CHAOTIC, N_("chaotic"))(LIMINAL, N_("liminal"))) ALIGNMENT alignment() const
 
fixed_t alpha () const
 
const std::vector< t_string > & abilities () const
 
const std::vector< t_string > & ability_tooltips () const
 
const std::vector< t_string > & adv_abilities () const
 
const std::vector< t_string > & adv_ability_tooltips () const
 
bool can_advance () const
 
bool musthave_status (const std::string &status) const
 
bool has_zoc () const
 
bool has_ability_by_id (const std::string &ability) const
 
std::vector< std::stringget_ability_list () const
 
config::const_child_itors possible_traits () const
 
const configabilities_cfg () const
 
config::const_child_itors advancements () const
 
config::const_child_itors events () const
 
bool has_random_traits () const
 
const std::vector
< unit_race::GENDER > & 
genders () const
 The returned vector will not be empty, provided this has been built to the HELP_INDEXED status. More...
 
std::vector< std::stringvariations () const
 
bool has_variation (const std::string &variation_id) const
 
bool show_variations_in_help () const
 Whether the unit type has at least one help-visible variation. More...
 
std::string race_id () const
 Returns the ID of this type's race without the need to build the type. More...
 
const unit_racerace () const
 Never returns nullptr, but may point to the null race. More...
 
bool hide_help () const
 
bool do_not_list () const
 
const configget_cfg () const
 
const configget_cfg_for_units () const
 Returns a trimmed config suitable for use with units. More...
 
int resistance_against (const std::string &damage_name, bool attacker) const
 Gets resistance while considering custom WML abilities. More...
 

Static Public Member Functions

static void check_id (std::string &id)
 
static std::string alignment_description (ALIGNMENT align, unit_race::GENDER gender=unit_race::MALE)
 

Private Types

typedef std::map< std::string,
unit_type * > 
variations_map
 

Private Member Functions

void build_full (const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits)
 Load data into an empty unit_type (build to FULL). More...
 
void build_help_index (const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits)
 Partially load data into an empty unit_type (build to HELP_INDEXED). More...
 
void build_created (const movement_type_map &movement_types, const race_map &races, const config::const_child_itors &traits)
 Load the most needed data into an empty unit_type (build to CREATE). More...
 
const configbuild_unit_cfg () const
 Generates (and returns) a trimmed config suitable for use with units. More...
 
bool resistance_filter_matches (const config &cfg, bool attacker, const std::string &damage_name, int res) const
 Identical to unit::resistance_filter_matches. More...
 
void operator= (const unit_type &o)
 

Private Attributes

const configcfg_
 
config unit_cfg_
 
bool built_unit_cfg_
 Generated as needed via get_cfg_for_units(). More...
 
std::string id_
 
std::string debug_id_
 
std::string base_id_
 A suffix for id_, used when logging messages. More...
 
t_string type_name_
 The id of the top ancestor of this unit_type. More...
 
t_string description_
 
int hitpoints_
 
double hp_bar_scaling_
 
double xp_bar_scaling_
 
int level_
 
int recall_cost_
 
int movement_
 
int vision_
 
int jamming_
 
int max_attacks_
 
int cost_
 
std::string usage_
 
std::string undead_variation_
 
std::string image_
 
std::string icon_
 
std::string small_profile_
 
std::string profile_
 
std::string flag_rgb_
 
unsigned int num_traits_
 
unit_typegender_types_ [2]
 
variations_map variations_
 
std::string default_variation_
 
std::string variation_name_
 
const unit_racerace_
 
fixed_t alpha_
 Never nullptr, but may point to the null race. More...
 
std::vector< t_stringabilities_
 
std::vector< t_stringadv_abilities_
 
std::vector< t_stringability_tooltips_
 
std::vector< t_stringadv_ability_tooltips_
 
bool zoc_
 
bool hide_help_
 
bool do_not_list_
 
std::vector< std::stringadvances_to_
 
int experience_needed_
 
bool in_advancefrom_
 
ALIGNMENT alignment_
 
movetype movement_type_
 
config possible_traits_
 
std::vector< unit_race::GENDERgenders_
 
std::vector< unit_animationanimations_
 
BUILD_STATUS build_status_
 

Detailed Description

Definition at line 39 of file types.hpp.

Member Typedef Documentation

typedef std::map<std::string,unit_type*> unit_type::variations_map
private

Definition at line 272 of file types.hpp.

Member Enumeration Documentation

Records the status of the lazy building of unit types.

These are in order of increasing levels of being built. HELP_INDEX is already defined in a windows header under some conditions.

Enumerator
NOT_BUILT 
CREATED 
VARIATIONS 
HELP_INDEXED 
FULL 

Definition at line 64 of file types.hpp.

Constructor & Destructor Documentation

unit_type::unit_type ( const config cfg,
const std::string parent_id = "" 
)
explicit

Creates a unit type for the given config, but delays its build till later.

Note
cfg is not copied, so it has to point to some permanent storage, that is, a child of unit_type_data::unit_cfg.

Definition at line 110 of file types.cpp.

References base_id_, check_id(), gender_types_, and id_.

Referenced by build_created(), build_help_index(), and unit_type().

unit_type::unit_type ( const unit_type o)

Definition at line 53 of file types.cpp.

References gender_types_, i, unit_type(), and variations_.

unit_type::~unit_type ( )

Definition at line 166 of file types.cpp.

References gender_types_, i, and variations_.

Member Function Documentation

const std::vector<t_string>& unit_type::abilities ( ) const
inline
const config& unit_type::abilities_cfg ( ) const
inline

Definition at line 185 of file types.hpp.

References cfg_, and config::child_or_empty().

Referenced by unit::advance_to().

const std::vector<t_string>& unit_type::ability_tooltips ( ) const
inline

Definition at line 167 of file types.hpp.

References ability_tooltips_.

Referenced by help::generate_ability_topics().

void unit_type::add_advancement ( const unit_type advance_to,
int  experience 
)

Adds an additional advancement path to a unit type.

This is used to implement the [advancefrom] tag.

Definition at line 565 of file types.cpp.

References add_advancement(), advances_to_, unit_type_data::build_unit_type(), cfg_, DBG_UT, experience_needed_, gui2::event::find(), gender_types_, config::has_child(), id_, in_advancefrom_, LOG_CONFIG, log_id(), unit_types, VARIATIONS, variations_, and WRN_CF.

Referenced by add_advancement().

const std::vector<t_string>& unit_type::adv_abilities ( ) const
inline

Definition at line 170 of file types.hpp.

References adv_abilities_.

Referenced by help::generate_ability_topics(), and help::unit_topic_generator::operator()().

const std::vector<t_string>& unit_type::adv_ability_tooltips ( ) const
inline

Definition at line 171 of file types.hpp.

References adv_ability_tooltips_.

Referenced by help::generate_ability_topics().

std::set< std::string > unit_type::advancement_tree ( ) const

Get the advancement tree Build a set of unit type's id of this unit type's advancement tree.

Definition at line 642 of file types.cpp.

References advancement_tree_internal(), and id_.

Referenced by ai::default_recruitment::recruitment::do_similarity_penalty().

config::const_child_itors unit_type::advancements ( ) const
inline

Definition at line 188 of file types.hpp.

References cfg_, and config::child_range().

Referenced by unit::advance_to().

const std::vector< std::string > unit_type::advances_from ( ) const
const std::vector<std::string>& unit_type::advances_to ( ) const
inline
static std::string unit_type::alignment_description ( ALIGNMENT  align,
unit_race::GENDER  gender = unit_race::MALE 
)
static
fixed_t unit_type::alpha ( ) const
inline

Definition at line 164 of file types.hpp.

References alpha_.

Referenced by unit::advance_to().

const std::vector< unit_animation > & unit_type::animations ( ) const
std::vector< attack_type > unit_type::attacks ( ) const
const std::string& unit_type::base_id ( ) const
inline
const std::string& unit_type::big_profile ( ) const
inline

Definition at line 141 of file types.hpp.

References profile_.

Referenced by unit::advance_to(), and help::unit_topic_generator::operator()().

void unit_type::build ( BUILD_STATUS  status,
const movement_type_map movement_types,
const race_map races,
const config::const_child_itors traits 
)

Performs a build of this to the indicated stage.

Definition at line 405 of file types.cpp.

References build_created(), build_full(), build_help_index(), CREATED, DBG_UT, ERR_UT, FULL, HELP_INDEXED, log_id(), NOT_BUILT, and VARIATIONS.

Referenced by build(), and unit_type_data::build_unit_type().

void unit_type::build ( BUILD_STATUS  status,
const movement_type_map movement_types,
const race_map races,
const config::const_child_itors traits 
) const
inline

Performs a build of this to the indicated stage.

(This does not logically change the unit type, so allow const access.)

Definition at line 82 of file types.hpp.

References build().

void unit_type::build_created ( const movement_type_map mv_types,
const race_map races,
const config::const_child_itors traits 
)
private

Load the most needed data into an empty unit_type (build to CREATE).

This creates the gender-specific types (if needed) and also defines how much experience is needed to advance as well as what this advances to.

Definition at line 365 of file types.cpp.

References advances_to_, build_created(), build_status_, cfg_, config::child(), CREATED, DBG_UT, debug_id_, experience_needed_, gender_types_, i, id_, log_id(), utils::split(), and unit_type().

Referenced by build(), build_created(), and build_help_index().

void unit_type::build_full ( const movement_type_map movement_types,
const race_map races,
const config::const_child_itors traits 
)
private
void unit_type::build_help_index ( const movement_type_map movement_types,
const race_map races,
const config::const_child_itors traits 
)
private
const config & unit_type::build_unit_cfg ( ) const
private

Generates (and returns) a trimmed config suitable for use with units.

Definition at line 756 of file types.cpp.

References config::append_attributes(), built_unit_cfg_, cfg_, config::empty(), config::remove_attribute(), and unit_cfg_.

Referenced by get_cfg_for_units().

bool unit_type::can_advance ( ) const
inline
void unit_type::check_id ( std::string id)
static

Definition at line 1292 of file types.cpp.

References ERR_UT, error(), pos, and schema_validation::valid.

Referenced by get_unit_type(), and unit_type().

int unit_type::cost ( ) const
inline
const std::string& unit_type::default_variation ( ) const
inline

Definition at line 135 of file types.hpp.

References default_variation_.

bool unit_type::do_not_list ( ) const
inline

Definition at line 220 of file types.hpp.

References do_not_list_.

std::string unit_type::ellipse ( ) const
inline

Definition at line 143 of file types.hpp.

References cfg_.

Referenced by unit::advance_to().

config::const_child_itors unit_type::events ( ) const
inline

Definition at line 191 of file types.hpp.

References cfg_, and config::child_range().

Referenced by unit::advance_to().

int unit_type::experience_needed ( bool  with_acceleration = true) const
const std::string& unit_type::flag_rgb ( ) const
inline
const std::vector<unit_race::GENDER>& unit_type::genders ( ) const
inline
bool unit_type::generate_name ( ) const
inline

Definition at line 144 of file types.hpp.

References cfg_.

Referenced by unit::advance_to().

std::vector< std::string > unit_type::get_ability_list ( ) const
const config& unit_type::get_cfg ( ) const
inline
const config& unit_type::get_cfg_for_units ( ) const
inline

Returns a trimmed config suitable for use with units.

Definition at line 224 of file types.hpp.

References build_unit_cfg(), built_unit_cfg_, and unit_cfg_.

Referenced by unit::advance_to().

const unit_type & unit_type::get_gender_unit_type ( std::string  gender) const
const unit_type & unit_type::get_gender_unit_type ( unit_race::GENDER  gender) const

Definition at line 446 of file types.cpp.

References gender_types_, and i.

const unit_type & unit_type::get_variation ( const std::string id) const
std::string unit_type::halo ( ) const
inline

Definition at line 142 of file types.hpp.

References cfg_.

Referenced by unit::advance_to().

bool unit_type::has_ability_by_id ( const std::string ability) const

Definition at line 533 of file types.cpp.

References cfg_, and config::child().

bool unit_type::has_random_traits ( ) const
bool unit_type::has_variation ( const std::string variation_id) const
Parameters
variation_idThe id of the variation we search for.
Returns
Whether one of the type's variations' (or the siblings' if the unit_type is a variation itself) id matches variation_id.

Definition at line 736 of file types.cpp.

References variations_.

Referenced by basic_unit_filter_impl::internal_matches_filter().

bool unit_type::has_zoc ( ) const
inline

Definition at line 177 of file types.hpp.

References zoc_.

Referenced by unit::advance_to().

bool unit_type::hide_help ( ) const
int unit_type::hitpoints ( ) const
inline
double unit_type::hp_bar_scaling ( ) const
inline

Definition at line 124 of file types.hpp.

References hp_bar_scaling_.

Referenced by unit::advance_to().

const std::string& unit_type::icon ( ) const
inline
const std::string& unit_type::id ( ) const
inline
const std::string& unit_type::image ( ) const
inline
int unit_type::jamming ( ) const
inline

Definition at line 132 of file types.hpp.

References jamming_.

Referenced by unit::advance_to(), and help::unit_topic_generator::operator()().

int unit_type::level ( ) const
inline
const std::string unit_type::log_id ( ) const
inline

A variant on id() that is more descriptive, for use with message logging.

Definition at line 117 of file types.hpp.

References debug_id_, and id_.

Referenced by add_advancement(), unit_type_data::add_advancement(), unit::advances_to_translated(), build(), build_created(), and unit::generate_traits().

unit_type::MAKE_ENUM ( ALIGNMENT  ,
(LAWFUL, N_("lawful"))(NEUTRAL, N_("neutral"))(CHAOTIC, N_("chaotic"))(LIMINAL, N_("liminal"))   
) const
inline

Definition at line 154 of file types.hpp.

References alignment_.

int unit_type::max_attacks ( ) const
inline

Definition at line 133 of file types.hpp.

References max_attacks_.

Referenced by unit::advance_to().

config::const_child_itors unit_type::modification_advancements ( ) const
inline

Definition at line 100 of file types.hpp.

References cfg_, and config::child_range().

Referenced by dialogs::unit_types_preview_pane::get_details().

int unit_type::movement ( ) const
inline
const movetype& unit_type::movement_type ( ) const
inline
bool unit_type::musthave_status ( const std::string status) const
unsigned int unit_type::num_traits ( ) const
inline
void unit_type::operator= ( const unit_type o)
private
config::const_child_itors unit_type::possible_traits ( ) const
inline
const unit_race* unit_type::race ( ) const
inline

Never returns nullptr, but may point to the null race.

Requires building to the HELP_INDEXED status to get the correct race.

Definition at line 218 of file types.hpp.

References race_.

Referenced by unit::advance_to(), dialogs::unit_types_preview_pane::get_details(), help::unit_topic_generator::operator()(), and gui2::tunit_preview_pane::set_displayed_type().

std::string unit_type::race_id ( ) const
inline
int unit_type::recall_cost ( ) const
inline

Definition at line 127 of file types.hpp.

References recall_cost_.

Referenced by unit::advance_to(), unit_type_callable::get_value(), and impl_unit_type_get().

int unit_type::resistance_against ( const std::string damage_name,
bool  attacker 
) const
bool unit_type::resistance_filter_matches ( const config cfg,
bool  attacker,
const std::string damage_name,
int  res 
) const
private
bool unit_type::show_variations_in_help ( ) const
const std::string& unit_type::small_profile ( ) const
inline

Definition at line 140 of file types.hpp.

References small_profile_.

Referenced by unit::advance_to(), and help::unit_topic_generator::operator()().

const t_string& unit_type::type_name ( ) const
inline
const std::string& unit_type::undead_variation ( ) const
inline

Info on the type of unit that the unit reanimates as.

Definition at line 107 of file types.hpp.

References undead_variation_.

Referenced by unit::advance_to(), and battle_context_unit_stats::battle_context_unit_stats().

t_string unit_type::unit_description ( ) const

Definition at line 467 of file types.cpp.

References _(), description_, and t_string::empty().

Referenced by unit::advance_to(), and help::unit_topic_generator::operator()().

const std::string& unit_type::usage ( ) const
inline
const std::string& unit_type::variation_name ( ) const
inline

Definition at line 136 of file types.hpp.

References variation_name_.

Referenced by help::generate_unit_sections(), and help::unit_topic_generator::operator()().

std::vector< std::string > unit_type::variations ( ) const

Definition at line 726 of file types.cpp.

References variations_.

Referenced by help::generate_unit_sections(), and help::unit_topic_generator::operator()().

int unit_type::vision ( ) const
inline

Definition at line 129 of file types.hpp.

References movement(), and vision_.

Referenced by unit::advance_to(), and help::unit_topic_generator::operator()().

int unit_type::vision ( bool  base_value) const
inline

If base_value is set to true, do not fall back to movement().

Definition at line 131 of file types.hpp.

References vision(), and vision_.

Referenced by vision().

double unit_type::xp_bar_scaling ( ) const
inline

Definition at line 125 of file types.hpp.

References xp_bar_scaling_.

Referenced by unit::advance_to().

Member Data Documentation

std::vector<t_string> unit_type::abilities_
private

Definition at line 281 of file types.hpp.

Referenced by abilities(), and build_help_index().

std::vector<t_string> unit_type::ability_tooltips_
private

Definition at line 282 of file types.hpp.

Referenced by ability_tooltips(), and build_help_index().

std::vector<t_string> unit_type::adv_abilities_
private

Definition at line 281 of file types.hpp.

Referenced by adv_abilities(), and build_help_index().

std::vector<t_string> unit_type::adv_ability_tooltips_
private

Definition at line 282 of file types.hpp.

Referenced by adv_ability_tooltips(), and build_help_index().

std::vector<std::string> unit_type::advances_to_
private

Definition at line 286 of file types.hpp.

Referenced by add_advancement(), advances_to(), build_created(), and can_advance().

ALIGNMENT unit_type::alignment_
private

Definition at line 291 of file types.hpp.

Referenced by build_full(), build_help_index(), and MAKE_ENUM().

fixed_t unit_type::alpha_
private

Never nullptr, but may point to the null race.

Definition at line 279 of file types.hpp.

Referenced by alpha(), and build_full().

std::vector<unit_animation> unit_type::animations_
mutableprivate

Definition at line 300 of file types.hpp.

Referenced by animations().

std::string unit_type::base_id_
private

A suffix for id_, used when logging messages.

Definition at line 247 of file types.hpp.

Referenced by base_id(), build_help_index(), and unit_type().

BUILD_STATUS unit_type::build_status_
private

Definition at line 302 of file types.hpp.

Referenced by build_created(), build_full(), and build_help_index().

bool unit_type::built_unit_cfg_
mutableprivate

Generated as needed via get_cfg_for_units().

Definition at line 243 of file types.hpp.

Referenced by build_unit_cfg(), and get_cfg_for_units().

const config& unit_type::cfg_
private
int unit_type::cost_
private

Definition at line 258 of file types.hpp.

Referenced by build_help_index(), and cost().

std::string unit_type::debug_id_
private

Definition at line 246 of file types.hpp.

Referenced by build_created(), build_help_index(), and log_id().

std::string unit_type::default_variation_
private

Definition at line 274 of file types.hpp.

Referenced by default_variation().

t_string unit_type::description_
private

Definition at line 249 of file types.hpp.

Referenced by build_help_index(), and unit_description().

bool unit_type::do_not_list_
private

Definition at line 284 of file types.hpp.

Referenced by do_not_list().

int unit_type::experience_needed_
private

Definition at line 287 of file types.hpp.

Referenced by add_advancement(), build_created(), and experience_needed().

std::string unit_type::flag_rgb_
private

Definition at line 266 of file types.hpp.

Referenced by flag_rgb().

unit_type* unit_type::gender_types_[2]
private
std::vector<unit_race::GENDER> unit_type::genders_
private

Definition at line 297 of file types.hpp.

Referenced by build_help_index(), and genders().

bool unit_type::hide_help_
private

Definition at line 284 of file types.hpp.

Referenced by build_help_index(), and hide_help().

int unit_type::hitpoints_
private

Definition at line 250 of file types.hpp.

Referenced by build_help_index(), and hitpoints().

double unit_type::hp_bar_scaling_
private

Definition at line 251 of file types.hpp.

Referenced by build_full(), and hp_bar_scaling().

std::string unit_type::icon_
private

Definition at line 263 of file types.hpp.

Referenced by build_help_index(), and icon().

std::string unit_type::id_
private
std::string unit_type::image_
private

Definition at line 262 of file types.hpp.

Referenced by build_help_index(), and image().

bool unit_type::in_advancefrom_
private

Definition at line 288 of file types.hpp.

Referenced by add_advancement().

int unit_type::jamming_
private

Definition at line 256 of file types.hpp.

Referenced by build_help_index(), and jamming().

int unit_type::level_
private

Definition at line 252 of file types.hpp.

Referenced by build_full(), build_help_index(), and level().

int unit_type::max_attacks_
private

Definition at line 257 of file types.hpp.

Referenced by build_help_index(), and max_attacks().

int unit_type::movement_
private

Definition at line 254 of file types.hpp.

Referenced by build_help_index(), and movement().

movetype unit_type::movement_type_
private

Definition at line 293 of file types.hpp.

Referenced by build_help_index(), movement_type(), and resistance_against().

unsigned int unit_type::num_traits_
private

Definition at line 268 of file types.hpp.

Referenced by build_help_index(), and num_traits().

config unit_type::possible_traits_
private

Definition at line 295 of file types.hpp.

Referenced by build_full(), build_help_index(), and possible_traits().

std::string unit_type::profile_
private

Definition at line 265 of file types.hpp.

Referenced by big_profile(), and build_help_index().

const unit_race* unit_type::race_
private

Definition at line 277 of file types.hpp.

Referenced by build_full(), build_help_index(), hide_help(), and race().

int unit_type::recall_cost_
private

Definition at line 253 of file types.hpp.

Referenced by build_help_index(), and recall_cost().

std::string unit_type::small_profile_
private

Definition at line 264 of file types.hpp.

Referenced by build_help_index(), and small_profile().

t_string unit_type::type_name_
private

The id of the top ancestor of this unit_type.

Definition at line 248 of file types.hpp.

Referenced by build_help_index(), and type_name().

std::string unit_type::undead_variation_
private

Definition at line 260 of file types.hpp.

Referenced by build_full(), build_help_index(), and undead_variation().

config unit_type::unit_cfg_
mutableprivate

Definition at line 242 of file types.hpp.

Referenced by build_unit_cfg(), and get_cfg_for_units().

std::string unit_type::usage_
private

Definition at line 259 of file types.hpp.

Referenced by build_help_index(), and usage().

std::string unit_type::variation_name_
private

Definition at line 275 of file types.hpp.

Referenced by variation_name().

variations_map unit_type::variations_
private
int unit_type::vision_
private

Definition at line 255 of file types.hpp.

Referenced by build_help_index(), and vision().

double unit_type::xp_bar_scaling_
private

Definition at line 251 of file types.hpp.

Referenced by build_full(), and xp_bar_scaling().

bool unit_type::zoc_
private

Definition at line 284 of file types.hpp.

Referenced by build_full(), and has_zoc().


The documentation for this class was generated from the following files: