|
OpenMW
|
#include <windowmanager.hpp>
Public Types | |
| typedef T | Type |
Public Member Functions | |
| 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 |
| 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 an adjust base accordingly. More... | |
| void | setCurrent (const T &value, bool allowDecreaseBelowZero=false) |
| void | setModifier (const T &modifier, bool allowCurrentDecreaseBelowZero=false) |
| void | writeState (ESM::StatState< T > &state) const |
| void | readState (const ESM::StatState< T > &state) |
Private Attributes | |
| Stat< T > | mStatic |
| T | mCurrent |
| typedef T MWMechanics::DynamicStat< T >::Type |
| MWMechanics::DynamicStat< T >::DynamicStat | ( | ) |
| MWMechanics::DynamicStat< T >::DynamicStat | ( | T | base | ) |
| MWMechanics::DynamicStat< T >::DynamicStat | ( | T | base, |
| T | modified, | ||
| T | current | ||
| ) |
| MWMechanics::DynamicStat< T >::DynamicStat | ( | const Stat< T > & | stat, |
| T | current | ||
| ) |
| const T & MWMechanics::DynamicStat< T >::getBase | ( | ) | const |
| const T & MWMechanics::DynamicStat< T >::getCurrent | ( | ) | const |
| T MWMechanics::DynamicStat< T >::getModified | ( | ) | const |
| void MWMechanics::DynamicStat< T >::readState | ( | const ESM::StatState< T > & | state | ) |
| void MWMechanics::DynamicStat< T >::set | ( | const T & | value | ) |
Set base, modified and current to value.
| void MWMechanics::DynamicStat< T >::setBase | ( | const T & | value | ) |
Set base and adjust modified accordingly.
| void MWMechanics::DynamicStat< T >::setCurrent | ( | const T & | value, |
| bool | allowDecreaseBelowZero = false |
||
| ) |
| void MWMechanics::DynamicStat< T >::setModified | ( | T | value, |
| const T & | min, | ||
| const T & | max = std::numeric_limits<T>::max() |
||
| ) |
Set modified value an adjust base accordingly.
| void MWMechanics::DynamicStat< T >::setModifier | ( | const T & | modifier, |
| bool | allowCurrentDecreaseBelowZero = false |
||
| ) |
| void MWMechanics::DynamicStat< T >::writeState | ( | ESM::StatState< T > & | state | ) | const |
|
private |
|
private |
1.8.6