The Battle for Wesnoth  1.19.19+dev
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
attack_type Class Reference

#include <attack_type.hpp>

Inheritance diagram for attack_type:

Public Types

using AFFECTS = unit_ability_t::affects_t
 

Public Member Functions

 attack_type (const config &cfg)
 
const t_stringname () const
 
const std::string & id () const
 
const std::string & type () const
 
const std::string & icon () const
 
const std::string & range () const
 
int min_range () const
 
int max_range () const
 
std::string accuracy_parry_description () const
 
std::string accuracy_parry_tooltip () const
 
int accuracy () const
 
int parry () const
 
int damage () const
 
int num_attacks () const
 
double attack_weight () const
 
double defense_weight () const
 
const ability_vectorspecials () const
 
config specials_cfg () const
 
void set_name (const t_string &value)
 
void set_id (const std::string &value)
 
void set_type (const std::string &value)
 
void set_icon (const std::string &value)
 
void set_range (const std::string &value)
 
void set_min_range (int value)
 
void set_max_range (int value)
 
void set_attack_alignment (const std::string &value)
 
void set_accuracy (int value)
 
void set_parry (int value)
 
void set_damage (int value)
 
void set_num_attacks (int value)
 
void set_attack_weight (double value)
 
void set_defense_weight (double value)
 
void set_specials_cfg (const config &value)
 
std::vector< unit_ability_t::tooltip_infospecial_tooltips () const
 Returns a vector of names and descriptions for the specials of *this. More...
 
utils::optional< unit_alignments::type > alignment () const
 Returns alignment specified by alignment_ variable. More...
 
std::string alignment_str () const
 Returns alignment specified by alignment() for filtering when exist. More...
 
void modified_attacks (unsigned &min_attacks, unsigned &max_attacks) const
 Calculates the number of attacks this weapon has, considering specials. More...
 
std::pair< std::string, std::set< std::string > > damage_types () const
 Return a type()/replacement_type and a list of alternative_types that should be displayed in the selected unit's report. More...
 
std::pair< std::string, int > effective_damage_type () const
 The type of attack used and the resistance value that does the most damage. More...
 
double modified_damage () const
 Returns the damage per attack of this weapon, considering specials. More...
 
int modified_chance_to_hit (int cth) const
 Return the defense value, considering specials. More...
 
int composite_value (const active_ability_list &abil_list, int base_value) const
 Return the special weapon value, considering specials. More...
 
active_ability_list get_specials_and_abilities (const std::string &special) const
 
bool has_special_or_ability (const std::string &special) const
 used for abilities used like weapon and true specials More...
 
bool has_active_special_or_ability_id (const std::string &special) const
 
bool has_filter_special_or_ability (const config &filter) const
 check if special matche handles the special_(id/type) attributes in weapon filters. More...
 
bool attack_empty () const
 Returns true if this is a dummy attack_type, for example the placeholder that the unit_attack dialog uses when a defender has no weapon for a given range. More...
 
void remove_special_by_filter (const config &filter)
 remove special if matche condition More...
 
bool has_special_or_ability_with_filter (const config &filter) const
 check if special matche More...
 
bool matches_filter (const config &filter, const std::string &check_if_recursion="") const
 Returns whether or not *this matches the given filter. More...
 
void apply_effect (const config &cfg)
 Applies effect modifications described by cfg. More...
 
int movement_used () const
 
void set_movement_used (int value)
 
int attacks_used () const
 
void set_attacks_used (int value)
 
void write (config &cfg) const
 
config to_config () const
 
void add_formula_context (wfl::map_formula_callable &) const
 
std::string select_replacement_type (const active_ability_list &damage_type_list) const
 Select best damage type based on frequency count for replacement_type. More...
 
std::pair< std::string, int > select_alternative_type (const active_ability_list &damage_type_list, const active_ability_list &resistance_list) const
 Select best damage type based on highest damage for alternative_type. More...
 
active_ability_list overwrite_special_overwriter (active_ability_list overwriters) const
 Filter a list of abilities or weapon specials, removing any entries that don't own the overwrite_specials attributes. More...
 
bool overwrite_special_checking (active_ability_list &overwriters, const unit_ability_t &ab) const
 Check whether cfg would be overwritten by any element of overwriters. More...
 
bool special_active (const unit_ability_t &ab, AFFECTS whom) const
 
std::unique_ptr< specials_context_tfallback_context (const unit_ptr &self=nullptr) const
 
void set_changed (bool value)
 
bool get_changed () const
 

Static Public Member Functions

static std::string describe_effect (const config &cfg)
 Generates a description of the effect specified by cfg, if applicable. More...
 

Public Attributes

specials_context_tcontext_
 

Private Attributes

t_string description_
 
std::string id_
 
std::string type_
 
std::string icon_
 
std::string range_
 
int min_range_
 
int max_range_
 
utils::optional< unit_alignments::type > alignment_
 
int damage_
 
int num_attacks_
 
double attack_weight_
 
double defense_weight_
 
int accuracy_
 
int movement_used_
 
int attacks_used_
 
int parry_
 
ability_vector specials_
 
bool changed_
 

Friends

class specials_context_t
 

Detailed Description

Definition at line 41 of file attack_type.hpp.

Member Typedef Documentation

◆ AFFECTS

Definition at line 176 of file attack_type.hpp.

Constructor & Destructor Documentation

◆ attack_type()

attack_type::attack_type ( const config cfg)
explicit

Member Function Documentation

◆ accuracy()

int attack_type::accuracy ( ) const
inline

Definition at line 55 of file attack_type.hpp.

References accuracy_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ accuracy_parry_description()

std::string attack_type::accuracy_parry_description ( ) const

Definition at line 90 of file attack_type.cpp.

References accuracy_, parry_, s, and utils::signed_percent().

◆ accuracy_parry_tooltip()

std::string attack_type::accuracy_parry_tooltip ( ) const

Definition at line 106 of file attack_type.cpp.

References _(), accuracy_, markup::bold(), parry_, utils::signed_percent(), and tooltip.

◆ add_formula_context()

void attack_type::add_formula_context ( wfl::map_formula_callable callable) const

Definition at line 856 of file abilities.cpp.

◆ alignment()

utils::optional<unit_alignments::type> attack_type::alignment ( ) const
inline

Returns alignment specified by alignment_ variable.

Definition at line 89 of file attack_type.hpp.

References alignment_.

◆ alignment_str()

std::string attack_type::alignment_str ( ) const
inline

Returns alignment specified by alignment() for filtering when exist.

Definition at line 92 of file attack_type.hpp.

References alignment_, and string_enums::enum_base< Definition >::get_string().

Referenced by impl_unit_attack_get(), matches_simple_filter(), and write().

◆ apply_effect()

void attack_type::apply_effect ( const config cfg)

◆ attack_empty()

bool attack_type::attack_empty ( ) const
inline

Returns true if this is a dummy attack_type, for example the placeholder that the unit_attack dialog uses when a defender has no weapon for a given range.

Definition at line 139 of file attack_type.hpp.

References name(), range(), and type().

Referenced by effective_damage_type().

◆ attack_weight()

double attack_type::attack_weight ( ) const
inline

Definition at line 59 of file attack_type.hpp.

References attack_weight_.

Referenced by battle_context::choose_attacker_weapon(), and impl_unit_attack_get().

◆ attacks_used()

int attack_type::attacks_used ( ) const
inline

Definition at line 165 of file attack_type.hpp.

References attacks_used_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ composite_value()

int attack_type::composite_value ( const active_ability_list abil_list,
int  base_value 
) const

Return the special weapon value, considering specials.

Parameters
abil_listThe list of special checked.
base_valueThe value modified or not by function.

Definition at line 693 of file attack_type.cpp.

References unit_abilities::effect::get_composite_value().

Referenced by modified_attacks(), and modified_chance_to_hit().

◆ damage()

int attack_type::damage ( ) const
inline

◆ damage_types()

std::pair< std::string, std::set< std::string > > attack_type::damage_types ( ) const

Return a type()/replacement_type and a list of alternative_types that should be displayed in the selected unit's report.

Returns
A type()/replacement_type and a list of alternative_types that should be displayed in the selected unit's report.

Definition at line 826 of file attack_type.cpp.

References c, active_ability_list::empty(), get_specials_and_abilities(), i, select_replacement_type(), and type().

◆ defense_weight()

double attack_type::defense_weight ( ) const
inline

Definition at line 60 of file attack_type.hpp.

References defense_weight_.

Referenced by battle_context::choose_defender_weapon(), and impl_unit_attack_get().

◆ describe_effect()

std::string attack_type::describe_effect ( const config cfg)
static

Generates a description of the effect specified by cfg, if applicable.

This covers a subset of the effects which can be applied via apply_effect.

Definition at line 514 of file attack_type.cpp.

References cfg, config_attribute_value::empty(), utils::print_modifier(), set_accuracy(), set_attacks_used(), set_damage(), set_max_range(), set_min_range(), set_parry(), config_attribute_value::to_int(), VGETTEXT, and VNGETTEXT.

Referenced by unit::describe_builtin_effect().

◆ effective_damage_type()

std::pair< std::string, int > attack_type::effective_damage_type ( ) const

The type of attack used and the resistance value that does the most damage.

Returns
The type of attack used and the resistance value that does the most damage.

Definition at line 792 of file attack_type.cpp.

References attack_empty(), specials_context_t::attacker, context_, active_ability_list::empty(), utils::erase_if(), fallback_context(), specials_context_t::get_abilities_weapons(), get_specials_and_abilities(), i, select_alternative_type(), select_replacement_type(), specials_context_t::self_and_other(), and type().

Referenced by matches_simple_filter(), and events::mouse_handler::show_attack_dialog().

◆ fallback_context()

std::unique_ptr< specials_context_t > attack_type::fallback_context ( const unit_ptr self = nullptr) const

◆ get_changed()

bool attack_type::get_changed ( ) const
inline

Definition at line 221 of file attack_type.hpp.

References changed_.

◆ get_specials_and_abilities()

active_ability_list attack_type::get_specials_and_abilities ( const std::string &  special) const
Parameters
specialthe tag name to check for
Returns
list which contains get_weapon_ability and get_specials list for each ability type, with overwritten items removed

Definition at line 880 of file attack_type.cpp.

References active_ability::ability(), context_, active_ability_list::empty(), utils::erase_if(), fallback_context(), specials_context_t::get_active_specials(), overwrite_special_checking(), and overwrite_special_overwriter().

Referenced by damage_types(), effective_damage_type(), modified_attacks(), modified_chance_to_hit(), and modified_damage().

◆ has_active_special_or_ability_id()

bool attack_type::has_active_special_or_ability_id ( const std::string &  special) const
Parameters
specialid to check.

Definition at line 907 of file attack_type.cpp.

References context_, fallback_context(), and specials_context_t::has_active_special_id().

Referenced by matches_simple_filter().

◆ has_filter_special_or_ability()

bool attack_type::has_filter_special_or_ability ( const config filter) const

check if special matche handles the special_(id/type) attributes in weapon filters.

Returns
True if a speical matching the filter was found.
Parameters
filtercontains attributes special_id, special_type, special

Definition at line 141 of file attack_type.cpp.

References utils::views::filter, range(), specials(), and utils::split_set().

Referenced by matches_simple_filter().

◆ has_special_or_ability()

bool attack_type::has_special_or_ability ( const std::string &  special) const

used for abilities used like weapon and true specials

Returns whether or not *this has a special ability with a tag or id equal to special.

Returns
True if the ability special is active.
Parameters
specialThe special being checked.

the Check is for a special ability active in the current context (see set_specials_context), including specials obtained from the opponent's attack.

Definition at line 901 of file attack_type.cpp.

References context_, fallback_context(), and specials_context_t::has_active_special().

Referenced by matches_simple_filter().

◆ has_special_or_ability_with_filter()

bool attack_type::has_special_or_ability_with_filter ( const config filter) const

check if special matche

Returns
True if special matche with filter(if 'active' filter is true, check if special active).
Parameters
filterif special check with filter, return true.

Definition at line 913 of file attack_type.cpp.

References context_, fallback_context(), utils::views::filter, utils::find_if(), specials_context_t::has_active_special_matching_filter(), and specials().

Referenced by matches_simple_filter().

◆ icon()

const std::string& attack_type::icon ( ) const
inline

Definition at line 49 of file attack_type.hpp.

References icon_.

Referenced by impl_unit_attack_get(), and events::mouse_handler::show_attack_dialog().

◆ id()

const std::string& attack_type::id ( ) const
inline

Definition at line 47 of file attack_type.hpp.

References id_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ matches_filter()

bool attack_type::matches_filter ( const config filter,
const std::string &  check_if_recursion = "" 
) const

Returns whether or not *this matches the given filter.

Definition at line 301 of file attack_type.cpp.

References utils::views::filter, and matches_simple_filter().

◆ max_range()

int attack_type::max_range ( ) const
inline

Definition at line 52 of file attack_type.hpp.

References max_range_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ min_range()

int attack_type::min_range ( ) const
inline

Definition at line 51 of file attack_type.hpp.

References min_range_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ modified_attacks()

void attack_type::modified_attacks ( unsigned &  min_attacks,
unsigned &  max_attacks 
) const

Calculates the number of attacks this weapon has, considering specials.

This returns two numbers because of the swarm special. The actual number of attacks depends on the unit's health and should be: min_attacks + (max_attacks - min_attacks) * (current hp) / (max hp) c.f. swarm_blows()

Definition at line 706 of file attack_type.cpp.

References composite_value(), active_ability_list::empty(), ERR_NG, get_specials_and_abilities(), active_ability_list::highest(), and num_attacks().

◆ modified_chance_to_hit()

int attack_type::modified_chance_to_hit ( int  cth) const

Return the defense value, considering specials.

Parameters
cthThe chance_to_hit value modified or not by function.

Definition at line 852 of file attack_type.cpp.

References accuracy_, composite_value(), context_, fallback_context(), get_specials_and_abilities(), parry(), and specials_context_t::self_and_other().

◆ modified_damage()

double attack_type::modified_damage ( ) const

Returns the damage per attack of this weapon, considering specials.

Definition at line 847 of file attack_type.cpp.

References damage(), unit_abilities::effect::get_composite_double_value(), and get_specials_and_abilities().

◆ movement_used()

int attack_type::movement_used ( ) const
inline

Definition at line 163 of file attack_type.hpp.

References movement_used_.

Referenced by impl_unit_attack_get(), and matches_simple_filter().

◆ name()

const t_string& attack_type::name ( ) const
inline

◆ num_attacks()

int attack_type::num_attacks ( ) const
inline

◆ overwrite_special_checking()

bool attack_type::overwrite_special_checking ( active_ability_list overwriters,
const unit_ability_t ab 
) const

Check whether cfg would be overwritten by any element of overwriters.

Returns
True if element checked is overwritable.
Parameters
overwriterslist used for check if element is overwritable.
abthe ability/special checked

Definition at line 1436 of file abilities.cpp.

References specials_context_t::attacker, unit_ability_t::cfg(), context_, deprecated_message(), active_ability_list::empty(), fallback_context(), INDEFINITE, unit_ability_t::matches_filter(), config::optional_child(), overwrite_special_affects(), and specials_context_t::self_and_other().

Referenced by get_specials_and_abilities(), and overwrite_special_overwriter().

◆ overwrite_special_overwriter()

active_ability_list attack_type::overwrite_special_overwriter ( active_ability_list  overwriters) const

Filter a list of abilities or weapon specials, removing any entries that don't own the overwrite_specials attributes.

Parameters
overwriterslist that may have overwrite_specials attributes.

Definition at line 1400 of file abilities.cpp.

References active_ability::ability_cfg(), active_ability_list::empty(), utils::erase_if(), i, overwrite_special_affects(), overwrite_special_checking(), active_ability_list::size(), and utils::sort_if().

Referenced by get_specials_and_abilities().

◆ parry()

int attack_type::parry ( ) const
inline

Definition at line 56 of file attack_type.hpp.

References parry_.

Referenced by impl_unit_attack_get(), matches_simple_filter(), and modified_chance_to_hit().

◆ range()

const std::string& attack_type::range ( ) const
inline

◆ remove_special_by_filter()

void attack_type::remove_special_by_filter ( const config filter)

remove special if matche condition

Parameters
filterif special check with filter, it will be removed.

Definition at line 325 of file attack_type.cpp.

References utils::views::filter, i, and specials_.

Referenced by apply_effect().

◆ select_alternative_type()

std::pair< std::string, int > attack_type::select_alternative_type ( const active_ability_list damage_type_list,
const active_ability_list resistance_list 
) const

Select best damage type based on highest damage for alternative_type.

Parameters
damage_type_listlist of [damage_type] to check.
resistance_listlist of "resistance" abilities to check for each type of damage checked.

Definition at line 757 of file attack_type.cpp.

References c, context_, fallback_context(), i, specials_context_t::self_and_other(), and type().

Referenced by effective_damage_type().

◆ select_replacement_type()

std::string attack_type::select_replacement_type ( const active_ability_list damage_type_list) const

Select best damage type based on frequency count for replacement_type.

Parameters
damage_type_listlist of [damage_type] to check.

Definition at line 728 of file attack_type.cpp.

References c, i, and type().

Referenced by damage_types(), and effective_damage_type().

◆ set_accuracy()

void attack_type::set_accuracy ( int  value)
inline

Definition at line 75 of file attack_type.hpp.

References accuracy_, and set_changed().

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_attack_alignment()

void attack_type::set_attack_alignment ( const std::string &  value)
inline

◆ set_attack_weight()

void attack_type::set_attack_weight ( double  value)
inline

Definition at line 79 of file attack_type.hpp.

References attack_weight_, and set_changed().

Referenced by apply_effect(), and impl_unit_attack_set().

◆ set_attacks_used()

void attack_type::set_attacks_used ( int  value)
inline

Definition at line 166 of file attack_type.hpp.

References attacks_used_.

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_changed()

void attack_type::set_changed ( bool  value)
inline

◆ set_damage()

void attack_type::set_damage ( int  value)
inline

Definition at line 77 of file attack_type.hpp.

References damage_, and set_changed().

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_defense_weight()

void attack_type::set_defense_weight ( double  value)
inline

Definition at line 80 of file attack_type.hpp.

References defense_weight_, and set_changed().

Referenced by apply_effect(), and impl_unit_attack_set().

◆ set_icon()

void attack_type::set_icon ( const std::string &  value)
inline

Definition at line 70 of file attack_type.hpp.

References icon_, and set_changed().

Referenced by apply_effect(), and impl_unit_attack_set().

◆ set_id()

void attack_type::set_id ( const std::string &  value)
inline

Definition at line 68 of file attack_type.hpp.

References id_, and set_changed().

Referenced by impl_unit_attack_set().

◆ set_max_range()

void attack_type::set_max_range ( int  value)
inline

Definition at line 73 of file attack_type.hpp.

References max_range_, and set_changed().

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_min_range()

void attack_type::set_min_range ( int  value)
inline

Definition at line 72 of file attack_type.hpp.

References min_range_, and set_changed().

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_movement_used()

void attack_type::set_movement_used ( int  value)
inline

Definition at line 164 of file attack_type.hpp.

References movement_used_.

Referenced by impl_unit_attack_set().

◆ set_name()

void attack_type::set_name ( const t_string value)
inline

Definition at line 67 of file attack_type.hpp.

References description_, and set_changed().

Referenced by apply_effect(), and impl_unit_attack_set().

◆ set_num_attacks()

void attack_type::set_num_attacks ( int  value)
inline

Definition at line 78 of file attack_type.hpp.

References num_attacks_, and set_changed().

Referenced by impl_unit_attack_set().

◆ set_parry()

void attack_type::set_parry ( int  value)
inline

Definition at line 76 of file attack_type.hpp.

References parry_, and set_changed().

Referenced by apply_effect(), describe_effect(), and impl_unit_attack_set().

◆ set_range()

void attack_type::set_range ( const std::string &  value)
inline

Definition at line 71 of file attack_type.hpp.

References range_, and set_changed().

Referenced by apply_effect(), and impl_unit_attack_set().

◆ set_specials_cfg()

void attack_type::set_specials_cfg ( const config value)
inline

Definition at line 81 of file attack_type.hpp.

References unit_ability_t::cfg_to_vector(), set_changed(), and specials_.

Referenced by impl_unit_attack_set().

◆ set_type()

void attack_type::set_type ( const std::string &  value)
inline

Definition at line 69 of file attack_type.hpp.

References set_changed(), and type_.

Referenced by apply_effect(), and impl_unit_attack_set().

◆ special_active()

bool attack_type::special_active ( const unit_ability_t ab,
AFFECTS  whom 
) const

◆ special_tooltips()

std::vector< unit_ability_t::tooltip_info > attack_type::special_tooltips ( ) const

Returns a vector of names and descriptions for the specials of *this.

Definition at line 927 of file attack_type.cpp.

References t_string::empty(), name(), and specials().

◆ specials()

const ability_vector& attack_type::specials ( ) const
inline

◆ specials_cfg()

config attack_type::specials_cfg ( ) const
inline

Definition at line 63 of file attack_type.hpp.

References specials_, and unit_ability_t::vector_to_cfg().

Referenced by attack_type(), impl_unit_attack_get(), and write().

◆ to_config()

config attack_type::to_config ( ) const
inline

Definition at line 169 of file attack_type.hpp.

References c, and write().

Referenced by impl_unit_attack_get().

◆ type()

const std::string& attack_type::type ( ) const
inline

◆ write()

void attack_type::write ( config cfg) const

Friends And Related Function Documentation

◆ specials_context_t

friend class specials_context_t
friend

Definition at line 212 of file attack_type.hpp.

Referenced by fallback_context().

Member Data Documentation

◆ accuracy_

int attack_type::accuracy_
private

◆ alignment_

utils::optional<unit_alignments::type> attack_type::alignment_
private

Definition at line 233 of file attack_type.hpp.

Referenced by alignment(), alignment_str(), apply_effect(), and set_attack_alignment().

◆ attack_weight_

double attack_type::attack_weight_
private

Definition at line 236 of file attack_type.hpp.

Referenced by apply_effect(), attack_weight(), set_attack_weight(), and write().

◆ attacks_used_

int attack_type::attacks_used_
private

Definition at line 241 of file attack_type.hpp.

Referenced by apply_effect(), attacks_used(), set_attacks_used(), and write().

◆ changed_

bool attack_type::changed_
private

Definition at line 244 of file attack_type.hpp.

Referenced by get_changed(), and set_changed().

◆ context_

specials_context_t* attack_type::context_
mutable

◆ damage_

int attack_type::damage_
private

Definition at line 234 of file attack_type.hpp.

Referenced by apply_effect(), damage(), set_damage(), and write().

◆ defense_weight_

double attack_type::defense_weight_
private

Definition at line 237 of file attack_type.hpp.

Referenced by apply_effect(), defense_weight(), set_defense_weight(), and write().

◆ description_

t_string attack_type::description_
private

Definition at line 227 of file attack_type.hpp.

Referenced by apply_effect(), attack_type(), name(), set_name(), and write().

◆ icon_

std::string attack_type::icon_
private

Definition at line 230 of file attack_type.hpp.

Referenced by apply_effect(), attack_type(), icon(), set_icon(), and write().

◆ id_

std::string attack_type::id_
private

Definition at line 228 of file attack_type.hpp.

Referenced by apply_effect(), attack_type(), id(), set_id(), and write().

◆ max_range_

int attack_type::max_range_
private

Definition at line 232 of file attack_type.hpp.

Referenced by apply_effect(), max_range(), set_max_range(), and write().

◆ min_range_

int attack_type::min_range_
private

Definition at line 232 of file attack_type.hpp.

Referenced by apply_effect(), min_range(), set_min_range(), and write().

◆ movement_used_

int attack_type::movement_used_
private

Definition at line 240 of file attack_type.hpp.

Referenced by apply_effect(), movement_used(), set_movement_used(), and write().

◆ num_attacks_

int attack_type::num_attacks_
private

Definition at line 235 of file attack_type.hpp.

Referenced by apply_effect(), num_attacks(), set_num_attacks(), and write().

◆ parry_

int attack_type::parry_
private

◆ range_

std::string attack_type::range_
private

Definition at line 231 of file attack_type.hpp.

Referenced by apply_effect(), range(), set_range(), and write().

◆ specials_

ability_vector attack_type::specials_
private

◆ type_

std::string attack_type::type_
private

Definition at line 229 of file attack_type.hpp.

Referenced by apply_effect(), set_type(), type(), and write().


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