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_abilities::effect Class Reference

#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_effecteffect_list_
 
int composite_value_
 

Detailed Description

Definition at line 41 of file abilities.hpp.

Member Typedef Documentation

Definition at line 48 of file abilities.hpp.

Definition at line 47 of file abilities.hpp.

Constructor & Destructor Documentation

unit_abilities::effect::effect ( const unit_ability_list list,
int  def,
bool  backstab 
)

Member Function Documentation

const_iterator unit_abilities::effect::begin ( ) const
inline

Definition at line 52 of file abilities.hpp.

References effect_list_.

const_iterator unit_abilities::effect::end ( ) const
inline

Definition at line 54 of file abilities.hpp.

References effect_list_.

int unit_abilities::effect::get_composite_value ( ) const
inline

Member Data Documentation

int unit_abilities::effect::composite_value_
private

Definition at line 58 of file abilities.hpp.

Referenced by effect(), and get_composite_value().

std::vector<individual_effect> unit_abilities::effect::effect_list_
private

Definition at line 57 of file abilities.hpp.

Referenced by begin(), effect(), and end().


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