Functions | |
static std::string | unit::upkeep_full::type () |
static std::string | unit::upkeep_loyal::type () |
unit::upkeep_value_visitor::upkeep_value_visitor (const unit &unit) | |
int | unit::upkeep_value_visitor::operator() (const upkeep_full &) const |
Full upkeep equals the unit's level. More... | |
int | unit::upkeep_value_visitor::operator() (const upkeep_loyal &) const |
Loyal units cost no upkeep. More... | |
int | unit::upkeep_value_visitor::operator() (int v) const |
template<typename T > | |
std::enable_if_t<!std::is_same_v< int, T >, std::string > | unit::upkeep_type_visitor::operator() (T &) const |
std::string | unit::upkeep_type_visitor::operator() (int v) const |
template<typename N > | |
std::enable_if_t< std::is_arithmetic_v< N >, upkeep_t > | unit::upkeep_parser_visitor::operator() (N n) const |
template<typename B > | |
std::enable_if_t< std::is_convertible_v< B, bool > &&!std::is_arithmetic_v< B >, upkeep_t > | unit::upkeep_parser_visitor::operator() (B b) const |
upkeep_t | unit::upkeep_parser_visitor::operator() (boost::blank) const |
upkeep_t | unit::upkeep_parser_visitor::operator() (const std::string &s) const |
bool | unit::get_ability_bool (const std::string &tag_name, const map_location &loc) const |
Checks whether this unit currently possesses or is affected by a given ability. More... | |
bool | unit::get_ability_bool (const std::string &tag_name) const |
Checks whether this unit currently possesses or is affected by a given ability. More... | |
unit_ability_list | unit::get_abilities (const std::string &tag_name, const map_location &loc) const |
Gets the unit's active abilities of a particular type if it were on a specified location. More... | |
unit_ability_list | unit::get_abilities (const std::string &tag_name) const |
Gets the unit's active abilities of a particular type. More... | |
unit_ability_list | unit::get_abilities_weapons (const std::string &tag_name, const map_location &loc, const_attack_ptr weapon=nullptr, const_attack_ptr opp_weapon=nullptr) const |
unit_ability_list | unit::get_abilities_weapons (const std::string &tag_name, const_attack_ptr weapon=nullptr, const_attack_ptr opp_weapon=nullptr) const |
std::vector< std::tuple< std::string, t_string, t_string, t_string > > | unit::ability_tooltips () const |
Gets the names and descriptions of this unit's abilities. More... | |
std::vector< std::tuple< std::string, t_string, t_string, t_string > > | unit::ability_tooltips (boost::dynamic_bitset<> &active_list, const map_location &loc) const |
Gets the names and descriptions of this unit's abilities. More... | |
std::vector< std::string > | unit::get_ability_list () const |
Get a list of all abilities by ID. More... | |
bool | unit::has_ability_type (const std::string &ability) const |
Check if the unit has an ability of a specific type. More... | |
bool | unit::has_ability_by_id (const std::string &ability) const |
Check if the unit has an ability of a specific ID. More... | |
void | unit::remove_ability_by_id (const std::string &ability) |
Removes a unit's abilities with a specific ID. More... | |
bool | unit::ability_active (const std::string &ability, const config &cfg, const map_location &loc) const |
Check if an ability is active. More... | |
bool | unit::ability_affects_adjacent (const std::string &ability, const config &cfg, int dir, const map_location &loc, const unit &from) const |
Check if an ability affects adjacent units. More... | |
bool | unit::ability_affects_self (const std::string &ability, const config &cfg, const map_location &loc) const |
Check if an ability affects the owning unit. More... | |
bool | unit::ability_affects_weapon (const config &cfg, const_attack_ptr weapon, bool is_opp) const |
filters the weapons that condition the use of abilities for combat ([resistance],[leadership] or abilities used like specials (deprecated in two last cases) More... | |
unit_formula_manager & | unit::formula_manager () const |
Get the unit formula manager. More... | |
void | unit::generate_name () |
Generates a random race-appropriate name if one has not already been provided. More... | |
bool | unit::invisible (const map_location &loc, bool see_all=true) const |
bool | unit::is_visible_to_team (const team &team, bool const see_all=true) const |
bool | unit::is_visible_to_team (const map_location &loc, const team &team, bool const see_all=true) const |
Return true if the unit would be visible to team if its location were loc. More... | |
void | unit::write (config &cfg, bool write_all=true) const |
Serializes the current unit metadata values. More... | |
unit & | unit::mark_clone (bool is_temporary) |
Mark this unit as clone so it can be inserted to unit_map. More... | |
void | unit::set_appearance_changed (bool value) |
bool | unit::appearance_changed () const |
void | unit::parse_upkeep (const config::attribute_value &upkeep) |
void | unit::write_upkeep (config::attribute_value &upkeep) const |
void | unit::clear_visibility_cache () const |
Clears the cache. More... | |
unit_movement_resetter::unit_movement_resetter (const unit_movement_resetter &)=delete | |
unit_movement_resetter & | unit_movement_resetter::operator= (const unit_movement_resetter &)=delete |
unit_movement_resetter::unit_movement_resetter (const unit &u, bool operate=true) | |
unit_movement_resetter::~unit_movement_resetter () | |
Friends | |
class | unit::unit_animation_component |
|
private |
Check if an ability is active.
ability | The type (tag name) of the ability |
cfg | an ability WML structure |
loc | The location on which to resolve the ability |
Definition at line 349 of file abilities.cpp.
References config::child(), config::child_range(), unit_map::end(), resources::filter_con, unit_map::find(), get_adjacent_tiles(), filter_context::get_disp_context(), display::get_singleton(), display_context::get_team(), display::get_units(), i, utf8::index(), unit_filter::matches(), map_location::NDIRECTIONS, map_location::parse_directions(), utils::parse_ranges(), and unit_filter::set_use_flat_tod().
|
private |
Check if an ability affects adjacent units.
ability | The type (tag name) of the ability |
cfg | an ability WML structure |
loc | The location on which to resolve the ability |
from | The "other unit" for filter matching |
dir | The direction the unit is facing |
Definition at line 420 of file abilities.cpp.
References config::child_range(), i, and map_location::parse_directions().
|
private |
Check if an ability affects the owning unit.
ability | The type (tag name) of the ability |
cfg | an ability WML structure |
loc | The location on which to resolve the ability |
Definition at line 444 of file abilities.cpp.
References config::child(), unit_filter::matches(), and unit_filter::set_use_flat_tod().
|
private |
filters the weapons that condition the use of abilities for combat ([resistance],[leadership] or abilities used like specials (deprecated in two last cases)
Definition at line 452 of file abilities.cpp.
References config::child(), and config::has_child().
std::vector< std::tuple< std::string, t_string, t_string, t_string > > unit::ability_tooltips | ( | ) | const |
Gets the names and descriptions of this unit's abilities.
Location-independent variant with all abilities shown as active.
Definition at line 321 of file abilities.cpp.
Referenced by gui2::unit_preview_pane::set_displayed_unit(), and unit_abilities().
std::vector< std::tuple< std::string, t_string, t_string, t_string > > unit::ability_tooltips | ( | boost::dynamic_bitset<> & | active_list, |
const map_location & | loc | ||
) | const |
Gets the names and descriptions of this unit's abilities.
active_list | This vector will be the same length as the returned one and will indicate whether or not the corresponding ability is active. |
loc | The location on which to resolve the ability. |
Definition at line 333 of file abilities.cpp.
|
inlineprivate |
|
inline |
Get the unit formula manager.
Definition at line 1751 of file unit.hpp.
References write().
Referenced by wfl::unit_callable::get_value().
void unit::generate_name | ( | ) |
Generates a random race-appropriate name if one has not already been provided.
Definition at line 787 of file unit.cpp.
References t_string::empty(), unit::gender_, unit_race::generate_name(), unit::generate_name_, unit::name_, and unit::race_.
Referenced by unit::init().
unit_ability_list unit::get_abilities | ( | const std::string & | tag_name, |
const map_location & | loc | ||
) | const |
Gets the unit's active abilities of a particular type if it were on a specified location.
tag_name | The type of ability to check for |
loc | The location to use for resolving abilities |
Definition at line 183 of file abilities.cpp.
References unit_ability_list::emplace_back(), unit_map::end(), unit_map::find(), get_adjacent_tiles(), display::get_singleton(), display::get_units(), i, and loc_.
Referenced by unit::defense_modifier(), pathfind::get_teleport_locations(), and unit_display::reset_helpers().
|
inline |
unit_ability_list unit::get_abilities_weapons | ( | const std::string & | tag_name, |
const map_location & | loc, | ||
const_attack_ptr | weapon = nullptr , |
||
const_attack_ptr | opp_weapon = nullptr |
||
) | const |
Definition at line 224 of file abilities.cpp.
References unit_ability_list::begin(), unit_ability_list::end(), unit_ability_list::erase(), and i.
Referenced by unit::resistance_against(), and under_leadership().
|
inline |
bool unit::get_ability_bool | ( | const std::string & | tag_name, |
const map_location & | loc | ||
) | const |
Checks whether this unit currently possesses or is affected by a given ability.
This means that the ability could be owned by this unit itself or by an adjacent unit, should the ability affect an AoE in which this unit happens to be.
tag_name | The name of the ability to check for. |
loc | The location around which to check for affected units. This may or may not be the location of this unit. |
Definition at line 144 of file abilities.cpp.
References unit_map::end(), unit_map::find(), get_adjacent_tiles(), display::get_singleton(), display::get_units(), and i.
Referenced by pathfind::shortest_path_calculator::cost(), ai::ai_default_rca::get_healing_phase::evaluate(), pathfind::find_routes(), game_lua_kernel::intf_unit_ability(), unit::invisible(), pathfind::mark_route(), ai::ai_default_rca::aspect_attacks_base::rate_terrain(), and ai::default_ai_context_impl::rate_terrain().
|
inline |
Checks whether this unit currently possesses or is affected by a given ability.
This means that the ability could be owned by this unit itself or by an adjacent unit, should the ability affect an AoE in which this unit happens to be.
This overload uses the location of this unit for calculations.
tag_name | The name of the ability to check for. |
Definition at line 1637 of file unit.hpp.
References loc_.
std::vector< std::string > unit::get_ability_list | ( | ) | const |
Get a list of all abilities by ID.
Definition at line 237 of file abilities.cpp.
References config_attribute_value::blank(), config::any_child::cfg, t_string::empty(), unit_race::MALE, name, and config_attribute_value::t_str().
Referenced by wfl::unit_callable::get_value(), wfl::unit_type_callable::get_value(), and gui2::unit_preview_pane::set_displayed_unit().
bool unit::has_ability_by_id | ( | const std::string & | ability | ) | const |
Check if the unit has an ability of a specific ID.
ability | The ID of ability to check for. |
Definition at line 1373 of file unit.cpp.
References unit::abilities_, and config::all_children_range().
Referenced by unit::apply_builtin_effect().
bool unit::has_ability_type | ( | const std::string & | ability | ) | const |
Check if the unit has an ability of a specific type.
ability | The type of ability (tag name) to check for. |
Definition at line 465 of file abilities.cpp.
bool unit::invisible | ( | const map_location & | loc, |
bool | see_all = true |
||
) | const |
Definition at line 2408 of file unit.cpp.
References DBG_UT, resources::gameboard, unit::get_ability_bool(), unit::get_location(), unit::get_state(), unit::id(), unit::invisibility_cache_, unit::side_, unit::STATE_UNCOVERED, and display_context::would_be_discovered().
Referenced by unit::is_visible_to_team(), pathfind::mark_route(), gui2::dialogs::unit_list::pre_show(), unit_drawer::redraw_unit(), unit_status(), and display_context::would_be_discovered().
bool unit::is_visible_to_team | ( | const team & | team, |
bool const | see_all = true |
||
) | const |
Definition at line 2451 of file unit.cpp.
References unit::get_location().
Referenced by actions::actor_sighted(), actions::get_sides_not_seeing(), and unit_drawer::redraw_unit().
bool unit::is_visible_to_team | ( | const map_location & | loc, |
const team & | team, | ||
bool const | see_all = true |
||
) | const |
Return true if the unit would be visible to team if its location were loc.
Definition at line 2457 of file unit.cpp.
References team::fogged(), display::get_singleton(), unit::invisible(), team::is_enemy(), n_unit::unit_id::is_fake(), team::side(), unit::side(), and unit::underlying_id_.
unit & unit::mark_clone | ( | bool | is_temporary | ) |
Mark this unit as clone so it can be inserted to unit_map.
Definition at line 2509 of file unit.cpp.
References resources::gameboard, resources::gamedata, n_unit::id_manager::global_instance(), unit::id_, game_data::INITIAL, synced_context::is_synced(), n_unit::id_manager::next_fake_id(), n_unit::id_manager::next_id(), unit::set_underlying_id(), unit::underlying_id_, game_board::unit_id_manager(), and WRN_UT.
Referenced by temporary_unit_placer::temporary_unit_placer().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
private |
Definition at line 2622 of file unit.cpp.
References config_attribute_value::apply_visitor(), e, config_attribute_value::empty(), and WRN_UT.
Referenced by unit::advance_to(), and unit::init().
void unit::remove_ability_by_id | ( | const std::string & | ability | ) |
Removes a unit's abilities with a specific ID.
ability | The type of ability (tag name) to remove. |
Definition at line 1384 of file unit.cpp.
References unit::abilities_, config::erase(), i, config::ordered_begin(), config::ordered_end(), unit::set_attr_changed(), and unit::UA_ABILITIES.
Referenced by unit::apply_builtin_effect().
|
inlinestatic |
|
inlinestatic |
Definition at line 1124 of file unit.hpp.
Referenced by unit::apply_builtin_effect().
|
delete |
unit_movement_resetter::unit_movement_resetter | ( | const unit & | u, |
bool | operate = true |
||
) |
Definition at line 2534 of file unit.cpp.
References unit::set_movement(), unit::total_movement(), and unit_movement_resetter::u_.
|
inlineexplicit |
void unit::write | ( | config & | cfg, |
bool | write_all = true |
||
) | const |
Serializes the current unit metadata values.
cfg | The config to write to. |
write_all | set this to false to not write unchanged attributes. |
Definition at line 1407 of file unit.cpp.
References unit::abilities_, config::add_child(), unit::advancements_, unit::advances_to_, unit::alignment_, config::append(), unit::attacks_, unit::attacks_left_, unit::can_recruit(), config::clear_children(), unit::description_, unit::ellipse_, unit::emit_zoc_, unit::events_, unit::experience_, unit::facing_, unit::filter_recall_, unit::flag_rgb_, unit::formula_man_, unit::gender_, gender_string(), unit::generate_name_, unit::get_attacks_changed(), unit::get_attr_changed(), unit::get_states(), unit::goto_, unit::halo_, unit::hidden_, unit::hit_points_, i, unit_type::icon(), unit_race::id(), unit::id_, unit_type::image(), unit::jamming_, utils::join(), unit::level_, unit::max_attacks_, unit::max_experience_, unit::max_hit_points_, unit::max_movement_, unit::modifications_, unit::movement_, unit::movement_type_, unit::name_, unit_type::parent_id(), unit::profile_, unit::race_, unit::random_traits_, unit::recall_cost_, unit::recruit_list_, unit::resting_, unit::role_, unit::side_, unit::small_profile_, unit::special_notes_, unit::type(), unit::type_id(), unit::type_name_, unit::UA_ABILITIES, unit::UA_ADVANCE_TO, unit::UA_ADVANCEMENTS, unit::UA_ALIGNMENT, unit::UA_ATTACKS, unit::UA_LEVEL, unit::UA_MAX_AP, unit::UA_MAX_HP, unit::UA_MAX_MP, unit::UA_MAX_XP, unit::UA_MOVEMENT_TYPE, unit::UA_NOTES, unit::UA_PROFILE, unit::UA_SMALL_PROFILE, unit::UA_ZOC, unit::undead_variation_, unit::underlying_id_, unit::unit_description(), unit::unit_value_, unit::unrenamable_, unit::usage_, n_unit::unit_id::value, unit::variables_, unit::variation_, unit::vision_, map_location::wml_x(), map_location::wml_y(), movetype::write(), map_location::write_direction(), and unit::write_upkeep().
Referenced by actions::find_recruit_location(), and get_checksum().
|
private |
Definition at line 2636 of file unit.cpp.
References variable_info_implementation::apply_visitor().
Referenced by unit::write().
unit_movement_resetter::~unit_movement_resetter | ( | ) |
Definition at line 2543 of file unit.cpp.
References DBG_UT, resources::gameboard, unit_movement_resetter::moves_, unit::set_movement(), and unit_movement_resetter::u_.
|
private |
Definition at line 1888 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::has_ability_by_id(), unit::init(), unit::remove_ability_by_id(), and unit::write().
|
private |
Definition at line 1890 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::set_advancements(), and unit::write().
|
private |
Definition at line 1790 of file unit.hpp.
Referenced by unit::advance_to(), unit::advancement_icons(), unit::advances_to_translated(), unit::apply_builtin_effect(), unit::get_modification_advances(), unit::set_advances_to(), unit::swap(), and unit::write().
|
private |
Definition at line 1818 of file unit.hpp.
Referenced by unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1882 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::expire_modifications(), unit::init(), unit::swap(), and unit::~unit().
|
mutableprivate |
Definition at line 1908 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::set_facing(), and unit::set_state().
|
private |
Definition at line 1861 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::describe_builtin_effect(), unit::get_attacks_changed(), unit::init(), unit::swap(), unit::unit(), and unit::write().
|
private |
Definition at line 1842 of file unit.hpp.
Referenced by unit::init(), unit::new_turn(), unit::swap(), and unit::write().
|
private |
Definition at line 1816 of file unit.hpp.
Referenced by unit::init(), and unit::swap().
|
private |
Definition at line 1892 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), and unit::write().
|
private |
Definition at line 1897 of file unit.hpp.
Referenced by unit::advance_to(), and unit::write().
|
private |
Definition at line 1856 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::swap(), and unit::write().
|
private |
Definition at line 1839 of file unit.hpp.
Referenced by unit::new_turn(), unit::set_movement(), and unit::swap().
|
private |
Definition at line 1853 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1810 of file unit.hpp.
Referenced by unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
mutableprotected |
Definition at line 1866 of file unit.hpp.
Referenced by unit::init(), unit::set_facing(), unit_animation_component::start_animation(), unit::swap(), and unit::write().
|
private |
Definition at line 1854 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1820 of file unit.hpp.
Referenced by unit::advance_to(), unit::flag_rgb(), unit::swap(), and unit::write().
|
private |
Definition at line 1829 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1827 of file unit.hpp.
Referenced by unit::add_trait_description(), unit::advance_to(), unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1900 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_name(), unit::init(), and unit::write().
|
private |
Definition at line 1873 of file unit.hpp.
Referenced by unit::init(), unit::new_scenario(), unit::swap(), and unit::write().
|
private |
Definition at line 1896 of file unit.hpp.
Referenced by unit::write().
|
mutableprivate |
Definition at line 1884 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1808 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::expire_modifications(), unit::heal(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1838 of file unit.hpp.
Referenced by unit::new_turn(), unit::set_movement(), and unit::swap().
|
private |
Definition at line 1885 of file unit.hpp.
Referenced by unit::advance_to(), and unit::init().
|
private |
Definition at line 1801 of file unit.hpp.
Referenced by unit::init(), unit::mark_clone(), unit::set_underlying_id(), unit::swap(), and unit::write().
|
private |
Definition at line 1821 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1873 of file unit.hpp.
Referenced by unit::swap().
|
mutableprivate |
Hold the visibility status cache for a unit, when not uncovered.
This is mutable since it is a cache.
Definition at line 1918 of file unit.hpp.
Referenced by unit::invisible(), and unit::swap().
|
private |
Definition at line 1875 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1875 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1834 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
staticprivate |
Definition at line 1850 of file unit.hpp.
Referenced by unit::get_known_boolean_state_id(), and unit::get_states().
|
private |
Definition at line 1849 of file unit.hpp.
Referenced by unit::get_state(), unit::set_state(), and unit::swap().
|
private |
Definition at line 1813 of file unit.hpp.
Referenced by unit::add_modification(), unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1788 of file unit.hpp.
Referenced by unit::add_modification(), unit::get_modification_advances(), unit::init(), unit_animation_component::invalidate(), unit_animation_component::refresh(), unit_animation_component::set_disabled_ghosted(), unit_animation_component::set_ghosted(), unit_animation_component::set_idling(), unit_animation_component::set_selecting(), unit_animation_component::set_standing(), unit_animation_component::start_animation(), and unit::swap().
|
private |
Definition at line 1843 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::new_turn(), unit::swap(), and unit::write().
|
private |
Definition at line 1811 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1809 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1832 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::expire_modifications(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1877 of file unit.hpp.
Referenced by unit::advance_to(), and unit::swap().
|
private |
Definition at line 1887 of file unit.hpp.
Referenced by unit::add_modification(), unit::apply_modifications(), unit::expire_modifications(), unit::generate_traits(), unit::get_traits_list(), unit::init(), unit::modification_count(), unit::swap(), and unit::write().
|
private |
Definition at line 1831 of file unit.hpp.
Referenced by unit::apply_builtin_effect(), unit::end_turn(), unit::expire_modifications(), unit::init(), unit::new_turn(), unit::set_movement(), unit::swap(), and unit::write().
|
private |
Definition at line 1836 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::defense_modifier(), unit::init(), unit::resistance_against(), unit::swap(), and unit::write().
|
private |
Definition at line 1951 of file unit.hpp.
Referenced by unit_movement_resetter::~unit_movement_resetter().
|
private |
Definition at line 1802 of file unit.hpp.
Referenced by unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1858 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1904 of file unit.hpp.
Referenced by unit::advance_to(), unit::big_profile(), unit::set_big_profile(), unit::small_profile(), and unit::write().
|
private |
Never nullptr, but may point to the null race.
Definition at line 1799 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1899 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_traits(), unit::init(), and unit::write().
|
private |
Definition at line 1815 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1817 of file unit.hpp.
Referenced by unit::set_recruits(), unit::swap(), and unit::write().
|
private |
Definition at line 1840 of file unit.hpp.
Referenced by unit::end_turn(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1860 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1825 of file unit.hpp.
Referenced by unit::apply_builtin_effect(), unit::init(), unit::invisible(), unit::swap(), and unit::write().
|
private |
Definition at line 1905 of file unit.hpp.
Referenced by unit::advance_to(), unit::small_profile(), and unit::write().
|
private |
Definition at line 1893 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), and unit::write().
|
private |
Definition at line 1845 of file unit.hpp.
Referenced by unit::get_state(), unit::get_states(), unit::set_state(), and unit::swap().
|
private |
Definition at line 1870 of file unit.hpp.
Referenced by unit::add_trait_description(), unit::advance_to(), and unit::swap().
|
private |
Definition at line 1869 of file unit.hpp.
Referenced by unit::add_trait_description(), unit::advance_to(), and unit::swap().
|
private |
Never nullptr.
Adjusted for gender and variation.
Definition at line 1793 of file unit.hpp.
Referenced by unit::advance_to(), unit::init(), unit::swap(), and unit::type_id().
|
private |
The displayed name of this unit type.
Definition at line 1796 of file unit.hpp.
Referenced by unit::advance_to(), unit::swap(), and unit::write().
|
private |
Definition at line 1950 of file unit.hpp.
Referenced by unit_movement_resetter::unit_movement_resetter(), and unit_movement_resetter::~unit_movement_resetter().
|
private |
Definition at line 1805 of file unit.hpp.
Referenced by unit::advance_to(), unit::swap(), and unit::write().
|
private |
Definition at line 1803 of file unit.hpp.
Referenced by unit::init(), unit::is_visible_to_team(), unit::mark_clone(), unit::set_underlying_id(), unit::swap(), and unit::write().
|
private |
Definition at line 1872 of file unit.hpp.
Referenced by unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1823 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1902 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::loyal(), and unit::upkeep().
|
private |
Definition at line 1895 of file unit.hpp.
Referenced by unit::write().
|
private |
Definition at line 1852 of file unit.hpp.
Referenced by unit::apply_modifications(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1806 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1833 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1885 of file unit.hpp.
Referenced by unit::advance_to(), and unit::init().
|
friend |