The Battle for Wesnoth  1.15.2+dev
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 40 of file abilities.hpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 47 of file abilities.hpp.

◆ iterator

Definition at line 46 of file abilities.hpp.

Constructor & Destructor Documentation

◆ effect()

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

Member Function Documentation

◆ begin()

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

Definition at line 51 of file abilities.hpp.

◆ end()

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

Definition at line 53 of file abilities.hpp.

◆ get_composite_value()

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

Member Data Documentation

◆ composite_value_

int unit_abilities::effect::composite_value_
private

Definition at line 57 of file abilities.hpp.

Referenced by effect().

◆ effect_list_

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

Definition at line 56 of file abilities.hpp.

Referenced by effect().


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