wavelength 1.0.0
Loading...
Searching...
No Matches
GameLogic::SpeedRamp Class Reference

Change of the song speed while a slowdown runs. More...

#include <gamelogic.h>

Inheritance diagram for GameLogic::SpeedRamp:
Collaboration diagram for GameLogic::SpeedRamp:

Public Member Functions

 SpeedRamp (Scheduler *pScheduler, float fSpeed)
 Construct the ramp at a speed.
 ~SpeedRamp () override
 Release the ramp.
void Apply (float fValue, int nTick) override
 Play the song at a new speed.
Public Member Functions inherited from Ramp
 Ramp (Scheduler *pScheduler, float fValue)
 Construct a ramp that holds a value.
virtual ~Ramp ()
 Stop the ramp.
void MoveTo (int nTicks, int nStepTicks, float fTarget)
 Move from the current value to a target.
void Move (int nTicks, int nStepTicks, float fFrom, float fTarget)
 Move from one value to another.
void Stop ()
 Withdraw the next step, leaving the value where it is.
float GetValue () const
 Report the current value.

Detailed Description

Change of the song speed while a slowdown runs.

The RTTI records the class as nested in GameLogic and as deriving from Ramp.

Constructor & Destructor Documentation

◆ SpeedRamp()

GameLogic::SpeedRamp::SpeedRamp ( Scheduler * pScheduler,
float fSpeed )
inline

Construct the ramp at a speed.

Parameters
pSchedulerThe scheduler the steps run on.
fSpeedThe speed to start at.

◆ ~SpeedRamp()

GameLogic::SpeedRamp::~SpeedRamp ( )
inlineoverride

Release the ramp.

Ghidra address:
NTSC-U/C: 0x00337cd8
Ghidra address:
PAL: 0x003a5288

Member Function Documentation

◆ Apply()

void GameLogic::SpeedRamp::Apply ( float fValue,
int nTick )
inlineoverridevirtual

Play the song at a new speed.

Parameters
fValueThe speed.
nTickThe tick of the step.
Ghidra address:
NTSC-U/C: 0x00337d48
Ghidra address:
PAL: 0x003a52f8

Implements Ramp.


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