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

#include <magiceffects.hpp>

Collaboration diagram for MWMechanics::EffectParam:

Public Member Functions

float getMagnitude () const
 Get the total magnitude including base and modifier. More...
 
void setModifier (float mod)
 
float getModifier () const
 
void modifyBase (int diff)
 Change mBase by diff. More...
 
void setBase (int base)
 
int getBase () const
 
 EffectParam ()
 
 EffectParam (float magnitude)
 
EffectParamoperator+= (const EffectParam &param)
 
EffectParamoperator-= (const EffectParam &param)
 

Private Attributes

float mModifier
 
int mBase
 

Constructor & Destructor Documentation

MWMechanics::EffectParam::EffectParam ( )
MWMechanics::EffectParam::EffectParam ( float  magnitude)
inline

Member Function Documentation

int MWMechanics::EffectParam::getBase ( ) const
float MWMechanics::EffectParam::getMagnitude ( ) const

Get the total magnitude including base and modifier.

Here is the caller graph for this function:

float MWMechanics::EffectParam::getModifier ( ) const

Here is the caller graph for this function:

void MWMechanics::EffectParam::modifyBase ( int  diff)

Change mBase by diff.

EffectParam & MWMechanics::EffectParam::operator+= ( const EffectParam param)
EffectParam & MWMechanics::EffectParam::operator-= ( const EffectParam param)
void MWMechanics::EffectParam::setBase ( int  base)
void MWMechanics::EffectParam::setModifier ( float  mod)

Member Data Documentation

int MWMechanics::EffectParam::mBase
private
float MWMechanics::EffectParam::mModifier
private

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