Const

template<typename T>
class CConstUnitParameter : public CBaseUnitParameter

Basic class for constant unit parameters.

Public Functions

inline T GetValue() const

Returns constant unit parameter value.

Returns

Constant unit parameter value.

inline T GetMin() const

Returns minimum allowed value.

Returns

Minimum allowed value.

inline T GetMax() const

Returns maximum allowed value.

Returns

Maximum allowed value.

virtual bool IsInBounds() const override

Checks whether m_value lays in range [m_min; m_max].

Returns

Whether m_value lays in the allowed range.