#include <stat.hpp>
List of all members.
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.
|
| 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 | modify (const T &diff) |
| | Change modified relatively.
|
| void | setCurrent (const T &value, bool allowDecreaseBelowZero=false) |
| void | setModifier (const T &modifier) |
Private Attributes |
| Stat< T > | mStatic |
| T | mCurrent |
template<typename T>
class MWMechanics::DynamicStat< T >
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Change modified relatively.
Set base, modified and current to value.
Set base and adjust modified accordingly.
Set modified value an adjust base accordingly.
Member Data Documentation
The documentation for this class was generated from the following file: