OpenMW
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
MWMechanics::MagicEffects Class Reference

Effects currently affecting a NPC or creature. More...

#include <magiceffects.hpp>

List of all members.

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 &param)
MagicEffectsoperator+= (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

Detailed Description

Effects currently affecting a NPC or creature.


Member Typedef Documentation


Member Function Documentation

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]

This function can safely be used for keys that are not present.

MagicEffects & MWMechanics::MagicEffects::operator+= ( const MagicEffects effects)

Member Data Documentation


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