#include <windowmanager.hpp>
|
| DynamicStat () |
|
| DynamicStat (T base) |
|
| DynamicStat (T base, T modified, T current) |
|
| DynamicStat (const Stat< T > &stat, T current) |
|
const T & | getBase () const |
|
T | getModified () const |
|
T | getCurrentModified () const |
|
const T & | getCurrent () const |
|
void | set (const T &value) |
| Set base, modified and current 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 and adjust base accordingly. More...
|
|
void | setCurrentModified (T value) |
|
void | setCurrent (const T &value, bool allowDecreaseBelowZero=false, bool allowIncreaseAboveModified=false) |
|
void | setModifier (const T &modifier, bool allowCurrentToDecreaseBelowZero=false) |
|
void | setCurrentModifier (const T &modifier, bool allowCurrentToDecreaseBelowZero=false) |
|
void | writeState (ESM::StatState< T > &state) const |
|
void | readState (const ESM::StatState< T > &state) |
|
Set base, modified and current to value.
Set base and adjust modified accordingly.
Set "current modified," used for drain and fortify. Unlike the regular modifier this just adds and subtracts from the current value without changing the maximum.
template<typename T>
void MWMechanics::DynamicStat< T >::setModified |
( |
T |
value, |
|
|
const T & |
min, |
|
|
const T & |
max = std::numeric_limits<T>::max() |
|
) |
| |
Set modified value and adjust base accordingly.
The documentation for this class was generated from the following files:
- /home/travis/build/elsid/openmw/apps/openmw/mwbase/windowmanager.hpp
- /home/travis/build/elsid/openmw/apps/openmw/mwmechanics/stat.hpp
- /home/travis/build/elsid/openmw/apps/openmw/mwmechanics/stat.cpp