#include <unit.hpp>
Public Types | |
typedef std::vector < unit_ability >::iterator | iterator |
typedef std::vector < unit_ability > ::const_iterator | const_iterator |
Public Member Functions | |
unit_ability_list () | |
std::pair< int, map_location > | highest (const std::string &key, int def=0) const |
std::pair< int, map_location > | lowest (const std::string &key, int def=0) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | empty () const |
unit_ability & | front () |
const unit_ability & | front () const |
unit_ability & | back () |
const unit_ability & | back () const |
iterator | erase (const iterator &erase_it) |
void | push_back (const unit_ability &ability) |
Private Attributes | |
std::vector< unit_ability > | cfgs_ |
typedef std::vector<unit_ability>::const_iterator unit_ability_list::const_iterator |
typedef std::vector<unit_ability>::iterator unit_ability_list::iterator |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 80 of file unit.hpp.
References cfgs_.
Referenced by battle_context_unit_stats::battle_context_unit_stats(), unit::defense_modifier(), attack_type::modified_attacks(), unit_type::resistance_against(), and unit::resistance_against().
|
inline |
|
inline |
|
inline |
Definition at line 81 of file unit.hpp.
References cfgs_.
Referenced by battle_context_unit_stats::battle_context_unit_stats().
|
inline |
std::pair< int, map_location > unit_ability_list::highest | ( | const std::string & | key, |
int | def = 0 |
||
) | const |
Definition at line 426 of file abilities.cpp.
References cfgs_.
Referenced by battle_context_unit_stats::battle_context_unit_stats(), ai::ai_default_rca::aspect_attacks_base::do_attack_analysis(), tod_manager::get_illuminated_time_of_day(), attack_type::modified_attacks(), unit_type::resistance_against(), unit::resistance_against(), and under_leadership().
std::pair< int, map_location > unit_ability_list::lowest | ( | const std::string & | key, |
int | def = 0 |
||
) | const |
Definition at line 457 of file abilities.cpp.
References cfgs_.
Referenced by tod_manager::get_illuminated_time_of_day().
|
inline |
Definition at line 87 of file unit.hpp.
References cfgs_.
Referenced by unit::get_abilities(), attack_type::get_specials(), and unit_type::resistance_against().
|
private |