Enumerations | |
enum | backwards_compatibility::unit_checksum_version { backwards_compatibility::unit_checksum_version::current, backwards_compatibility::unit_checksum_version::version_1_16_or_older } |
Optional parameter for get_checksum to use the algorithm of an older version of Wesnoth, thus preventing spurious OOS warnings while watching old replays. More... | |
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() (utils::monostate) 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 |
const config & | unit::abilities () const |
const std::set< std::string > & | unit::checking_tags () 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 |
already added | |
bool | unit::get_self_ability_bool (const config &special, const std::string &tag_name, const map_location &loc) const |
Checks whether this unit currently possesses a given ability used like weapon. More... | |
bool | unit::get_self_ability_bool_weapon (const config &special, const std::string &tag_name, const map_location &loc, const_attack_ptr weapon=nullptr, const_attack_ptr opp_weapon=nullptr) const |
Checks whether this unit currently possesses a given ability of leadership type. More... | |
bool | unit::get_adj_ability_bool (const config &special, const std::string &tag_name, int dir, const map_location &loc, const unit &from) const |
Checks whether this unit is affected by a given ability used like weapon. More... | |
bool | unit::get_adj_ability_bool_weapon (const config &special, const std::string &tag_name, int dir, const map_location &loc, const unit &from, const_attack_ptr weapon=nullptr, const_attack_ptr opp_weapon=nullptr) const |
Checks whether this unit is affected by a given ability of leadership type. More... | |
|
strong |
|
inline |
Definition at line 1724 of file unit.hpp.
Referenced by unit::init().
|
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 381 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_context::get_team(), i, utf8::index(), unit_filter::matches(), map_location::NDIRECTIONS, map_location::parse_directions(), utils::parse_ranges(), and unit_filter::set_use_flat_tod().
Referenced by unit::get_adj_ability_bool().
|
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 451 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 475 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 483 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 353 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 365 of file abilities.cpp.
|
inline |
Definition at line 1726 of file unit.hpp.
Referenced by unit_display::reset_helpers().
|
inlineprivate |
|
inline |
Get the unit formula manager.
Definition at line 1814 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 795 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 220 of file abilities.cpp.
References unit_ability_list::emplace_back(), unit_map::end(), unit_map::find(), get_adjacent_tiles(), 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 260 of file abilities.cpp.
References unit_ability::ability_cfg, utils::erase_if(), 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 182 of file abilities.cpp.
References unit_map::end(), unit_map::find(), get_adjacent_tiles(), 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 1657 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 269 of file abilities.cpp.
References config_attribute_value::blank(), config::any_child::cfg, t_string::empty(), unit_race::MALE, 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::get_adj_ability_bool | ( | const config & | special, |
const std::string & | tag_name, | ||
int | dir, | ||
const map_location & | loc, | ||
const unit & | from | ||
) | const |
Checks whether this unit is affected by a given ability used like weapon.
special | the const config to one of abilities tag_name checked. |
tag_name | name of ability type checked. |
loc | location of the unit checked. |
from | unit adjacent to this is checked in case of [affect_adjacent] abilities. |
dir | direction to research a unit adjacent to this. |
Definition at line 1374 of file abilities.cpp.
References unit::ability_active(), get_adjacent_tiles(), and unit::side().
bool unit::get_adj_ability_bool_weapon | ( | const config & | special, |
const std::string & | tag_name, | ||
int | dir, | ||
const map_location & | loc, | ||
const unit & | from, | ||
const_attack_ptr | weapon = nullptr , |
||
const_attack_ptr | opp_weapon = nullptr |
||
) | const |
Checks whether this unit is affected by a given ability of leadership type.
special | the const config to one of abilities tag_name checked. |
tag_name | name of ability type checked. |
loc | location of the unit checked. |
from | unit adjacent to this is checked in case of [affect_adjacent] abilities. |
dir | direction to research a unit adjacent to this. |
weapon | the attack used by unit checked in this function. |
opp_weapon | the attack used by opponent to unit checked. |
Definition at line 1385 of file abilities.cpp.
bool unit::get_self_ability_bool | ( | const config & | special, |
const std::string & | tag_name, | ||
const map_location & | loc | ||
) | const |
Checks whether this unit currently possesses a given ability used like weapon.
special | the const config to one of abilities tag_name checked. |
tag_name | name of ability type checked. |
loc | location of the unit checked. |
Definition at line 1369 of file abilities.cpp.
bool unit::get_self_ability_bool_weapon | ( | const config & | special, |
const std::string & | tag_name, | ||
const map_location & | loc, | ||
const_attack_ptr | weapon = nullptr , |
||
const_attack_ptr | opp_weapon = nullptr |
||
) | const |
Checks whether this unit currently possesses a given ability of leadership type.
special | the const config to one of abilities tag_name checked. |
tag_name | name of ability type checked. |
loc | location of the unit checked. |
weapon | the attack used by unit checked in this function. |
opp_weapon | the attack used by opponent to unit checked. |
Definition at line 1380 of file abilities.cpp.
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 1463 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 496 of file abilities.cpp.
bool unit::invisible | ( | const map_location & | loc, |
bool | see_all = true |
||
) | const |
Definition at line 2513 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 2556 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 2562 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 2614 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 2730 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 1474 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 1135 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 2639 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 1497 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(), string_enums::enum_base< Definition >::get_string(), 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 2744 of file unit.cpp.
Referenced by unit::write().
unit_movement_resetter::~unit_movement_resetter | ( | ) |
Definition at line 2648 of file unit.cpp.
References DBG_UT, resources::gameboard, utils::get_unknown_exception_type(), unit_movement_resetter::moves_, unit::set_movement(), and unit_movement_resetter::u_.
|
private |
Definition at line 1951 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 1953 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 1853 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 1881 of file unit.hpp.
Referenced by unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1945 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 1971 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::set_facing(), and unit::set_state().
|
private |
Definition at line 1924 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 1905 of file unit.hpp.
Referenced by unit::init(), unit::new_turn(), unit::swap(), and unit::write().
|
private |
Definition at line 1879 of file unit.hpp.
Referenced by unit::init(), and unit::swap().
|
private |
Definition at line 1972 of file unit.hpp.
Referenced by unit::unit().
|
private |
|
private |
Definition at line 1955 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), and unit::write().
|
private |
Definition at line 1960 of file unit.hpp.
Referenced by unit::advance_to(), and unit::write().
|
private |
Definition at line 1919 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::swap(), and unit::write().
|
private |
Definition at line 1902 of file unit.hpp.
Referenced by unit::new_turn(), unit::set_movement(), and unit::swap().
|
private |
Definition at line 1916 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1873 of file unit.hpp.
Referenced by unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
mutableprotected |
Definition at line 1929 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 1917 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1883 of file unit.hpp.
Referenced by unit::advance_to(), unit::flag_rgb(), unit::swap(), and unit::write().
|
private |
Definition at line 1892 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1890 of file unit.hpp.
Referenced by unit::add_trait_description(), unit::advance_to(), unit::apply_builtin_effect(), unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1963 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_name(), unit::init(), and unit::write().
|
private |
Definition at line 1936 of file unit.hpp.
Referenced by unit::init(), unit::new_scenario(), unit::swap(), and unit::write().
|
private |
Definition at line 1959 of file unit.hpp.
Referenced by unit::write().
|
mutableprivate |
Definition at line 1947 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1871 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 1901 of file unit.hpp.
Referenced by unit::new_turn(), unit::set_movement(), and unit::swap().
|
private |
Definition at line 1948 of file unit.hpp.
Referenced by unit::advance_to(), and unit::init().
|
private |
Definition at line 1864 of file unit.hpp.
Referenced by unit::init(), unit::mark_clone(), unit::set_underlying_id(), unit::swap(), and unit::write().
|
private |
Definition at line 1884 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1936 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 1981 of file unit.hpp.
Referenced by unit::invisible(), unit::swap(), and unit::unit().
|
private |
Definition at line 1938 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1938 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1897 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
staticprivate |
Definition at line 1913 of file unit.hpp.
Referenced by unit::get_known_boolean_state_id(), and unit::get_states().
|
private |
Definition at line 1912 of file unit.hpp.
Referenced by unit::get_state(), unit::set_state(), and unit::swap().
|
private |
Definition at line 1876 of file unit.hpp.
Referenced by unit::add_modification(), unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1851 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 1906 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 1874 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1872 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1895 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 1940 of file unit.hpp.
Referenced by unit::advance_to(), and unit::swap().
|
private |
Definition at line 1950 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 1894 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 1899 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 2014 of file unit.hpp.
Referenced by unit_movement_resetter::~unit_movement_resetter().
|
private |
Definition at line 1865 of file unit.hpp.
Referenced by unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1921 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), and unit::swap().
|
private |
Definition at line 1967 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 1862 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_name(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1962 of file unit.hpp.
Referenced by unit::advance_to(), unit::generate_traits(), unit::init(), and unit::write().
|
private |
Definition at line 1878 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1880 of file unit.hpp.
Referenced by unit::set_recruits(), unit::swap(), and unit::write().
|
private |
Definition at line 1903 of file unit.hpp.
Referenced by unit::end_turn(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1923 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1888 of file unit.hpp.
Referenced by unit::apply_builtin_effect(), unit::init(), unit::invisible(), unit::swap(), and unit::write().
|
private |
Definition at line 1968 of file unit.hpp.
Referenced by unit::advance_to(), unit::small_profile(), and unit::write().
|
private |
Definition at line 1956 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), and unit::write().
|
private |
Definition at line 1908 of file unit.hpp.
Referenced by unit::get_state(), unit::get_states(), unit::set_state(), and unit::swap().
|
private |
Definition at line 1933 of file unit.hpp.
Referenced by unit::add_trait_description(), unit::advance_to(), and unit::swap().
|
private |
Definition at line 1932 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 1856 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 1859 of file unit.hpp.
Referenced by unit::advance_to(), unit::swap(), and unit::write().
|
private |
Definition at line 2013 of file unit.hpp.
Referenced by unit_movement_resetter::unit_movement_resetter(), and unit_movement_resetter::~unit_movement_resetter().
|
private |
Definition at line 1868 of file unit.hpp.
Referenced by unit::advance_to(), unit::swap(), and unit::write().
|
private |
Definition at line 1866 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 1935 of file unit.hpp.
Referenced by unit::advance_to(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1886 of file unit.hpp.
Referenced by unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1965 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::loyal(), and unit::upkeep().
|
private |
Definition at line 1958 of file unit.hpp.
Referenced by unit::write().
|
private |
Definition at line 1915 of file unit.hpp.
Referenced by unit::apply_modifications(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1869 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1896 of file unit.hpp.
Referenced by unit::advance_to(), unit::apply_builtin_effect(), unit::init(), unit::swap(), and unit::write().
|
private |
Definition at line 1948 of file unit.hpp.
Referenced by unit::advance_to(), and unit::init().
|
friend |