|
wavelength 1.0.0
|
Energy of a solo player, which falls while the player misses phrases and ends the song at 0. More...
#include <juicemeter.h>
Public Member Functions | |
| JuiceMeter (float fValue) | |
| Construct a meter at a value. | |
| void | Set (float fValue) |
| Set the value, limited to the maximum, and record it in the session log. | |
| void | Add (float fAmount) |
| Add to the value. | |
| float | Get () const |
| Report the value. | |
| float | GetMax () const |
| Report the maximum. | |
Energy of a solo player, which falls while the player misses phrases and ends the song at 0.
The class is not polymorphic and has no RTTI. The name is inferred. Only the members its callers here use are declared.
|
explicit |
Construct a meter at a value.
The maximum is the initial juice of the skill level times GameConfig::mJuiceMeterMax.
| fValue | The value. |
| void JuiceMeter::Set | ( | float | fValue | ) |
Set the value, limited to the maximum, and record it in the session log.
| fValue | The value. |
| void JuiceMeter::Add | ( | float | fAmount | ) |
Add to the value.
| fAmount | The amount, negative to subtract. |
| float JuiceMeter::Get | ( | ) | const |
Report the value.
| float JuiceMeter::GetMax | ( | ) | const |
Report the maximum.