The Battle for Wesnoth  1.19.0-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_attack_ptr attacker=const_attack_ptr(), bool is_cumulable=false)
 
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 39 of file abilities.hpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 45 of file abilities.hpp.

◆ iterator

Definition at line 44 of file abilities.hpp.

Constructor & Destructor Documentation

◆ effect()

unit_abilities::effect::effect ( const unit_ability_list list,
int  def,
const_attack_ptr  attacker = const_attack_ptr(),
bool  is_cumulable = false 
)

Member Function Documentation

◆ begin()

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

Definition at line 49 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 51 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 55 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 54 of file abilities.hpp.

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


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