The Battle for Wesnoth  1.17.12+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

Definition at line 49 of file abilities.hpp.

◆ end()

const_iterator unit_abilities::effect::end ( ) const

Definition at line 51 of file abilities.hpp.

◆ get_composite_value()

int unit_abilities::effect::get_composite_value ( ) const

Member Data Documentation

◆ composite_value_

int unit_abilities::effect::composite_value_

Definition at line 55 of file abilities.hpp.

Referenced by effect().

◆ effect_list_

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

Definition at line 54 of file abilities.hpp.

Referenced by effect().

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