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

Powerup that multiplies the player's score for a stretch of bars. More...

#include <multiplierpowerup.h>

Inheritance diagram for MultiplierPowerup:
Collaboration diagram for MultiplierPowerup:

Public Member Functions

virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Start the multiplier bonus.
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 multiplies the player's score for a stretch of bars.

Its RTTI descriptor is at 0x008f08b0. It has Powerup as its one base. The factory builds it for kHudItemMultiplier with a four-byte allocation and the table at 0x007e4018. The destructor at 0x001ca160 is implicitly declared.

Member Function Documentation

◆ Deploy()

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

Start the multiplier bonus.

A MultiplierMsg (player at +0x04, bar at +0x08, and 4 at +0x0c) is delivered straight to the player's sink, and SND_DEPLOY_MULTIPLIER plays.

Parameters
nTrackNot read.
nBarThe bar the bonus starts at.
pPlayerThe deploying player.
nUnusedNot read.
Returns
1 always.
Ghidra address:
NTSC-U/C: 0x001ca218
Ghidra address:
PAL: 0x001d00b8

Implements Powerup.

◆ Type()

virtual int MultiplierPowerup::Type ( )
virtual
Returns
kHudItemMultiplier.
Ghidra address:
NTSC-U/C: 0x001ca210
Ghidra address:
PAL: 0x001d00b0

Implements Powerup.


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