wavelength 1.0.0
Loading...
Searching...
No Matches
JuiceMeter Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ JuiceMeter()

JuiceMeter::JuiceMeter ( float fValue)
explicit

Construct a meter at a value.

The maximum is the initial juice of the skill level times GameConfig::mJuiceMeterMax.

Parameters
fValueThe value.
Ghidra address:
NTSC-U/C: 0x00151660
Ghidra address:
PAL: 0x00152ea8

Member Function Documentation

◆ Set()

void JuiceMeter::Set ( float fValue)

Set the value, limited to the maximum, and record it in the session log.

Parameters
fValueThe value.
Ghidra address:
NTSC-U/C: 0x001516d0
Ghidra address:
PAL: 0x00152f18

◆ Add()

void JuiceMeter::Add ( float fAmount)

Add to the value.

Parameters
fAmountThe amount, negative to subtract.
Ghidra address:
NTSC-U/C: 0x00151730
Ghidra address:
PAL: 0x00152f78

◆ Get()

float JuiceMeter::Get ( ) const

Report the value.

Returns
The value.
Ghidra address:
NTSC-U/C: 0x00151778
Ghidra address:
PAL: 0x00152fc0

◆ GetMax()

float JuiceMeter::GetMax ( ) const

Report the maximum.

Returns
The maximum.
Ghidra address:
NTSC-U/C: 0x00151780
Ghidra address:
PAL: 0x00152fc8

The documentation for this class was generated from the following file: