resonance 1.0.1
Loading...
Searching...
No Matches
EffectPowerup Class Reference

Powerup that toggles one jam effect on a track. More...

#include <effectpowerup.h>

Inheritance diagram for EffectPowerup:
Collaboration diagram for EffectPowerup:

Public Member Functions

 EffectPowerup (int nEffectType)
 Record the kind this powerup reports.
virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Ask the track's JamEffectsMgr to toggle the effect for one bar.
virtual int Type ()
Public Member Functions inherited from Powerup
void * operator new (size_t nSize)
 Allocate a powerup from the tagged heap under the tag Powerup.
void operator delete (void *pBlock)
 Release a powerup to the tagged heap.
virtual ~Powerup ()

Additional Inherited Members

Static Public Member Functions inherited from Powerup
static Powerup * CreateForType (int nType)
 Produce one powerup of the requested kind on the heap.

Detailed Description

Powerup that toggles one jam effect on a track.

Its RTTI descriptor is at 0x008efb50. It has Powerup as its one base. The factory's shared arm builds it for the six effect kinds, kHudItemVolume through kHudItemChorus, with an eight-byte allocation and the table at 0x007e4068. The destructor at 0x001c9f08 is implicitly declared.

Constructor & Destructor Documentation

◆ EffectPowerup()

EffectPowerup::EffectPowerup ( int nEffectType)
inlineexplicit

Record the kind this powerup reports.

Inline. CreateForType() expands it and stores the kind after the table.

Parameters
nEffectTypeThe kind, a PowerupType from kHudItemVolume through kHudItemChorus.

Member Function Documentation

◆ Deploy()

virtual int EffectPowerup::Deploy ( int nTrack,
int nBar,
Player * pPlayer,
int nUnused )
virtual

Ask the track's JamEffectsMgr to toggle the effect for one bar.

A JamEffectMsg (bar at +0x04, track at +0x08, mEffectType at +0x0c, player at +0x10) goes out through the player's MsgSource.

Parameters
nTrackThe track.
nBarThe bar.
pPlayerThe deploying player.
nUnusedNot read.
Returns
1 always.
Ghidra address:
NTSC-U/C: 0x001c9fc0
Ghidra address:
PAL: 0x001cfe60

Implements Powerup.

◆ Type()

virtual int EffectPowerup::Type ( )
virtual
Returns
mEffectType.
Ghidra address:
NTSC-U/C: 0x001c9fb8
Ghidra address:
PAL: 0x001cfe58

Implements Powerup.


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