wavelength
1.0.0
Loading...
Searching...
No Matches
juicemeter.h
Go to the documentation of this file.
1
#pragma once
2
9
class
JuiceMeter
{
10
public
:
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
58
private
:
67
void
UpdateDisplay();
68
79
void
CheckLow(
float
fOld,
float
fNew);
80
81
float
mValue;
82
float
mMax;
83
int
mWarned;
84
};
JuiceMeter::JuiceMeter
JuiceMeter(float fValue)
Construct a meter at a value.
JuiceMeter::Add
void Add(float fAmount)
Add to the value.
JuiceMeter::Set
void Set(float fValue)
Set the value, limited to the maximum, and record it in the session log.
JuiceMeter::GetMax
float GetMax() const
Report the maximum.
JuiceMeter::Get
float Get() const
Report the value.
src
game
juicemeter.h
Generated by
1.15.0