OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
MWMechanics::MagicEffects Class Reference

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

#include <magiceffects.hpp>

Collaboration diagram for MWMechanics::MagicEffects:

Public Types

typedef std::map< EffectKey,
EffectParam
Collection
 

Public Member Functions

Collection::const_iterator begin () const
 
Collection::const_iterator end () const
 
void readState (const ESM::MagicEffects &state)
 
void writeState (ESM::MagicEffects &state) const
 
void add (const EffectKey &key, const EffectParam &param)
 
void remove (const EffectKey &key)
 
void modifyBase (const EffectKey &key, int diff)
 
void setModifiers (const MagicEffects &effects)
 Copy Modifier values from effects, but keep original mBase values. More...
 
MagicEffectsoperator+= (const MagicEffects &effects)
 
EffectParam get (const EffectKey &key) const
 This function can safely be used for keys that are not present. More...
 

Static Public Member Functions

static MagicEffects diff (const MagicEffects &prev, const MagicEffects &now)
 Return changes from prev to now. More...
 

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 
)

Here is the caller graph for this function:

Collection::const_iterator MWMechanics::MagicEffects::begin ( ) const
inline

Here is the caller graph for this function:

MagicEffects MWMechanics::MagicEffects::diff ( const MagicEffects prev,
const MagicEffects now 
)
static

Return changes from prev to now.

Here is the call graph for this function:

Collection::const_iterator MWMechanics::MagicEffects::end ( ) const
inline

Here is the caller graph for this function:

EffectParam MWMechanics::MagicEffects::get ( const EffectKey key) const

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

Here is the caller graph for this function:

void MWMechanics::MagicEffects::modifyBase ( const EffectKey key,
int  diff 
)

Here is the caller graph for this function:

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

Here is the call graph for this function:

void MWMechanics::MagicEffects::readState ( const ESM::MagicEffects state)

Here is the caller graph for this function:

void MWMechanics::MagicEffects::remove ( const EffectKey key)

Here is the caller graph for this function:

void MWMechanics::MagicEffects::setModifiers ( const MagicEffects effects)

Copy Modifier values from effects, but keep original mBase values.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWMechanics::MagicEffects::writeState ( ESM::MagicEffects state) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Collection MWMechanics::MagicEffects::mCollection
private

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