The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Private Attributes | List of all members
unit_ability_list Class Reference

#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_locationhighest (const std::string &key, int def=0) const
 
std::pair< int, map_locationlowest (const std::string &key, int def=0) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
unit_abilityfront ()
 
const unit_abilityfront () const
 
unit_abilityback ()
 
const unit_abilityback () const
 
iterator erase (const iterator &erase_it)
 
void push_back (const unit_ability &ability)
 

Private Attributes

std::vector< unit_abilitycfgs_
 

Detailed Description

Definition at line 59 of file unit.hpp.

Member Typedef Documentation

Definition at line 73 of file unit.hpp.

Definition at line 72 of file unit.hpp.

Constructor & Destructor Documentation

unit_ability_list::unit_ability_list ( )
inline

Definition at line 62 of file unit.hpp.

Member Function Documentation

unit_ability& unit_ability_list::back ( )
inline

Definition at line 83 of file unit.hpp.

References cfgs_.

const unit_ability& unit_ability_list::back ( ) const
inline

Definition at line 84 of file unit.hpp.

References cfgs_.

iterator unit_ability_list::begin ( )
inline

Definition at line 74 of file unit.hpp.

References cfgs_.

Referenced by unit::resistance_against().

const_iterator unit_ability_list::begin ( ) const
inline

Definition at line 75 of file unit.hpp.

References cfgs_.

bool unit_ability_list::empty ( ) const
inline
iterator unit_ability_list::end ( )
inline

Definition at line 76 of file unit.hpp.

References cfgs_.

Referenced by unit::resistance_against().

const_iterator unit_ability_list::end ( ) const
inline

Definition at line 77 of file unit.hpp.

References cfgs_.

iterator unit_ability_list::erase ( const iterator erase_it)
inline

Definition at line 86 of file unit.hpp.

References cfgs_.

Referenced by unit::resistance_against().

unit_ability& unit_ability_list::front ( )
inline

Definition at line 81 of file unit.hpp.

References cfgs_.

Referenced by battle_context_unit_stats::battle_context_unit_stats().

const unit_ability& unit_ability_list::front ( ) const
inline

Definition at line 82 of file unit.hpp.

References cfgs_.

std::pair< int, map_location > unit_ability_list::highest ( const std::string key,
int  def = 0 
) const
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().

void unit_ability_list::push_back ( const unit_ability ability)
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().

Member Data Documentation

std::vector<unit_ability> unit_ability_list::cfgs_
private

Definition at line 91 of file unit.hpp.

Referenced by back(), begin(), empty(), end(), erase(), front(), highest(), lowest(), and push_back().


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