OpenMW
Public Types | Public Member Functions | Private Attributes
MWMechanics::Stat< T > Class Template Reference

#include <stat.hpp>

List of all members.

Public Types

typedef T Type

Public Member Functions

 Stat ()
 Stat (T base)
 Stat (T base, T modified)
const T & getBase () const
getModified () const
getModifier () const
void set (const T &value)
 Set base and modified to value.
void modify (const T &diff)
void setBase (const T &value)
 Set base and adjust modified accordingly.
void setModified (T value, const T &min, const T &max=std::numeric_limits< T >::max())
 Set modified value an adjust base accordingly.
void setModifier (const T &modifier)

Private Attributes

mBase
mModified

template<typename T>
class MWMechanics::Stat< T >


Member Typedef Documentation

template<typename T>
typedef T MWMechanics::Stat< T >::Type

Constructor & Destructor Documentation

template<typename T>
MWMechanics::Stat< T >::Stat ( ) [inline]
template<typename T>
MWMechanics::Stat< T >::Stat ( base) [inline]
template<typename T>
MWMechanics::Stat< T >::Stat ( base,
modified 
) [inline]

Member Function Documentation

template<typename T>
const T& MWMechanics::Stat< T >::getBase ( ) const [inline]
template<typename T>
T MWMechanics::Stat< T >::getModified ( ) const [inline]
template<typename T>
T MWMechanics::Stat< T >::getModifier ( ) const [inline]
template<typename T>
void MWMechanics::Stat< T >::modify ( const T &  diff) [inline]
template<typename T>
void MWMechanics::Stat< T >::set ( const T &  value) [inline]

Set base and modified to value.

template<typename T>
void MWMechanics::Stat< T >::setBase ( const T &  value) [inline]

Set base and adjust modified accordingly.

template<typename T>
void MWMechanics::Stat< T >::setModified ( value,
const T &  min,
const T &  max = std::numeric_limits<T>::max() 
) [inline]

Set modified value an adjust base accordingly.

template<typename T>
void MWMechanics::Stat< T >::setModifier ( const T &  modifier) [inline]

Member Data Documentation

template<typename T>
T MWMechanics::Stat< T >::mBase [private]
template<typename T>
T MWMechanics::Stat< T >::mModified [private]

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