#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, const_attack_ptr attacker=const_attack_ptr(), EFFECTS wham=EFFECT_DEFAULT) | |
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 47 of file abilities.hpp.
typedef std::vector<individual_effect>::const_iterator unit_abilities::effect::iterator |
Definition at line 46 of file abilities.hpp.
unit_abilities::effect::effect | ( | const unit_ability_list & | list, |
int | def, | ||
const_attack_ptr | attacker = const_attack_ptr() , |
||
EFFECTS | wham = EFFECT_DEFAULT |
||
) |
Definition at line 2428 of file abilities.cpp.
References unit_abilities::ADD, composite_value_, unit_abilities::DIV, unit_abilities::EFFECT_CUMULABLE, unit_abilities::EFFECT_DEFAULT, effect_list_, config::empty(), ERR_NG, unit_abilities::filter_base_matches(), config::get(), config::has_attribute(), unit_ability_list::highest(), unit_ability_list::loc(), unit_ability_list::lowest(), unit_abilities::MUL, unit_abilities::NOT_USED, unit_abilities::SET, unit_abilities::individual_effect::set(), unit_abilities::individual_effect::type, and unit_abilities::individual_effect::value.
|
inline |
Definition at line 51 of file abilities.hpp.
References effect_list_.
Referenced by gui2::dialogs::attack_predictions::set_data().
|
inline |
Definition at line 53 of file abilities.hpp.
References effect_list_.
Referenced by gui2::dialogs::attack_predictions::set_data().
|
inline |
Definition at line 49 of file abilities.hpp.
References composite_value_.
Referenced by attack_type::composite_value(), unit::defense_modifier(), tod_manager::get_illuminated_time_of_day(), unit_type::resistance_against(), unit::resistance_value(), and under_leadership().
|
private |
Definition at line 57 of file abilities.hpp.
Referenced by effect(), and get_composite_value().
|
private |
Definition at line 56 of file abilities.hpp.