#include <abilities.hpp>
Public Types | |
typedef std::vector < individual_effect > ::const_iterator | iterator |
typedef std::vector < individual_effect > ::const_iterator | const_iterator |
Public Member Functions | |
effect (const unit_ability_list &list, int def, bool backstab) | |
int | get_composite_value () const |
const_iterator | begin () const |
const_iterator | end () const |
Private Attributes | |
std::vector< individual_effect > | effect_list_ |
int | composite_value_ |
Definition at line 41 of file abilities.hpp.
typedef std::vector<individual_effect>::const_iterator unit_abilities::effect::const_iterator |
Definition at line 48 of file abilities.hpp.
typedef std::vector<individual_effect>::const_iterator unit_abilities::effect::iterator |
Definition at line 47 of file abilities.hpp.
unit_abilities::effect::effect | ( | const unit_ability_list & | list, |
int | def, | ||
bool | backstab | ||
) |
Definition at line 1011 of file abilities.cpp.
References unit_abilities::ADD, composite_value_, unit_abilities::DIV, e, effect_list_, config::empty(), ERR_NG, unit_abilities::filter_base_matches(), int(), unit_abilities::MUL, unit_abilities::NOT_USED, unit_abilities::SET, unit_abilities::individual_effect::set(), schema_validation::sub(), unit_abilities::individual_effect::type, and lg::wml_error().
|
inline |
Definition at line 52 of file abilities.hpp.
References effect_list_.
|
inline |
Definition at line 54 of file abilities.hpp.
References effect_list_.
|
inline |
Definition at line 50 of file abilities.hpp.
References composite_value_.
Referenced by battle_context_unit_stats::battle_context_unit_stats(), unit::defense_modifier(), tod_manager::get_illuminated_time_of_day(), attack_type::modified_attacks(), attack_type::modified_damage(), unit_type::resistance_against(), and unit::resistance_against().
|
private |
Definition at line 58 of file abilities.hpp.
Referenced by effect(), and get_composite_value().
|
private |
Definition at line 57 of file abilities.hpp.