OpenMW
|
#include <stat.hpp>
Public Types | |
typedef T | Type |
Public Member Functions | |
Stat () | |
Stat (T base) | |
Stat (T base, T modified) | |
const T & | getBase () const |
T | getModified () const |
T | getModifier () const |
void | set (const T &value) |
Set base and modified to value. More... | |
void | setBase (const T &value) |
Set base and adjust modified accordingly. More... | |
void | setModified (T value, const T &min, const T &max=std::numeric_limits< T >::max()) |
Set modified value an adjust base accordingly. More... | |
void | setModifier (const T &modifier) |
void | writeState (ESM::StatState< T > &state) const |
void | readState (const ESM::StatState< T > &state) |
Private Attributes | |
T | mBase |
T | mModified |
typedef T MWMechanics::Stat< T >::Type |
MWMechanics::Stat< T >::Stat | ( | ) |
MWMechanics::Stat< T >::Stat | ( | T | base | ) |
MWMechanics::Stat< T >::Stat | ( | T | base, |
T | modified | ||
) |
const T & MWMechanics::Stat< T >::getBase | ( | ) | const |
T MWMechanics::Stat< T >::getModified | ( | ) | const |
T MWMechanics::Stat< T >::getModifier | ( | ) | const |
void MWMechanics::Stat< T >::readState | ( | const ESM::StatState< T > & | state | ) |
void MWMechanics::Stat< T >::set | ( | const T & | value | ) |
Set base and modified to value.
void MWMechanics::Stat< T >::setBase | ( | const T & | value | ) |
Set base and adjust modified accordingly.
void MWMechanics::Stat< T >::setModified | ( | T | value, |
const T & | min, | ||
const T & | max = std::numeric_limits<T>::max() |
||
) |
Set modified value an adjust base accordingly.
void MWMechanics::Stat< T >::setModifier | ( | const T & | modifier | ) |
void MWMechanics::Stat< T >::writeState | ( | ESM::StatState< T > & | state | ) | const |
|
private |
|
private |