Data typedef for active_ability_list. More...
#include <unit.hpp>
Public Member Functions | |
| active_ability (const ability_ptr &p_ability, map_location student_loc, map_location teacher_loc) | |
| const config & | ability_cfg () const |
| const unit_ability_t & | ability () const |
Public Attributes | |
| map_location | student_loc |
| Used by the formula in the ability. More... | |
| map_location | teacher_loc |
| The location of the teacher, that is the unit who owns the ability tags (different from student because of [affect_adjacent]) More... | |
Private Attributes | |
| const_ability_ptr | p_ability_ |
| The contents of the ability tag, never nullptr. More... | |
Data typedef for active_ability_list.
|
inline |
|
inline |
Definition at line 59 of file unit.hpp.
References p_ability_.
Referenced by attack_type::get_specials_and_abilities().
|
inline |
Definition at line 58 of file unit.hpp.
References p_ability_.
Referenced by battle_context_unit_stats::battle_context_unit_stats(), and attack_type::overwrite_special_overwriter().
|
private |
The contents of the ability tag, never nullptr.
Definition at line 62 of file unit.hpp.
Referenced by ability(), and ability_cfg().
| map_location active_ability::student_loc |
Used by the formula in the ability.
The REAL location of the student (not the 'we are assuming the student is at this position' location) once active_ability_list can contain abilities from different 'students', as it contains abilities from a unit aswell from its opponents (abilities with apply_to= opponent)
| map_location active_ability::teacher_loc |