OpenMW
|
Effects currently affecting a NPC or creature. More...
#include <magiceffects.hpp>
Public Types | |
typedef std::map< EffectKey, EffectParam > | Collection |
Public Member Functions | |
Collection::const_iterator | begin () const |
Collection::const_iterator | end () const |
void | add (const EffectKey &key, const EffectParam ¶m) |
MagicEffects & | operator+= (const MagicEffects &effects) |
EffectParam | get (const EffectKey &key) const |
This function can safely be used for keys that are not present. | |
Static Public Member Functions | |
static MagicEffects | diff (const MagicEffects &prev, const MagicEffects &now) |
Return changes from prev to now. | |
Private Attributes | |
Collection | mCollection |
Effects currently affecting a NPC or creature.
typedef std::map<EffectKey, EffectParam> MWMechanics::MagicEffects::Collection |
void MWMechanics::MagicEffects::add | ( | const EffectKey & | key, |
const EffectParam & | param | ||
) |
Collection::const_iterator MWMechanics::MagicEffects::begin | ( | ) | const [inline] |
MagicEffects MWMechanics::MagicEffects::diff | ( | const MagicEffects & | prev, |
const MagicEffects & | now | ||
) | [static] |
Return changes from prev to now.
Collection::const_iterator MWMechanics::MagicEffects::end | ( | ) | const [inline] |
EffectParam MWMechanics::MagicEffects::get | ( | const EffectKey & | key | ) | const |
This function can safely be used for keys that are not present.
MagicEffects & MWMechanics::MagicEffects::operator+= | ( | const MagicEffects & | effects | ) |