#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 |
T | getModified () const |
T | 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 |
T | mBase |
T | mModified |
template<typename T>
class MWMechanics::Stat< T >
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Set base and modified 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: