The Battle for Wesnoth  1.19.7+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, const const_attack_ptr &attacker=const_attack_ptr(), EFFECTS wham=EFFECT_DEFAULT)
 
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

◆ 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,
const const_attack_ptr attacker = const_attack_ptr(),
EFFECTS  wham = EFFECT_DEFAULT 
)

Member Function Documentation

◆ begin()

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

Definition at line 51 of file abilities.hpp.

References effect_list_.

Referenced by gui2::dialogs::attack_predictions::set_data().

◆ end()

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

Definition at line 53 of file abilities.hpp.

References effect_list_.

Referenced by gui2::dialogs::attack_predictions::set_data().

◆ 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(), and get_composite_value().

◆ effect_list_

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

Definition at line 56 of file abilities.hpp.

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


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