wavelength 1.0.0
Loading...
Searching...
No Matches
juicemeter.h
Go to the documentation of this file.
1#pragma once
2
9class JuiceMeter {
10public:
20 explicit JuiceMeter(float fValue);
21
29 void Set(float fValue);
30
38 void Add(float fAmount);
39
47 float Get() const;
48
56 float GetMax() const;
57
58private:
67 void UpdateDisplay();
68
79 void CheckLow(float fOld, float fNew);
80
81 float mValue;
82 float mMax;
83 int mWarned;
84};
JuiceMeter(float fValue)
Construct a meter at a value.
void Add(float fAmount)
Add to the value.
void Set(float fValue)
Set the value, limited to the maximum, and record it in the session log.
float GetMax() const
Report the maximum.
float Get() const
Report the value.