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

Powerup that lets a player freestyle over the song. More...

#include <freestylepowerup.h>

Inheritance diagram for FreestylePowerup:
Collaboration diagram for FreestylePowerup:

Public Member Functions

virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Enable freestyle for the player from a 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 lets a player freestyle over the song.

Its RTTI descriptor is at 0x008eee88. It has Powerup as its one base. The factory builds it for kHudItemFreestyler with a four-byte allocation and the table at 0x007e40e0. The destructor at 0x001c9970 is implicitly declared.

Member Function Documentation

◆ Deploy()

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

Enable freestyle for the player from a bar.

The routine does nothing and reports zero while Player::GetPlace() is non-zero. Otherwise an EnableFreestyleMsg goes out through the player's MsgSource. A handled message is followed by a DeployedPowerupMsg with no bar range and a track of -1, and SND_DEPLOY_FREESTYLER plays. An unhandled one is followed by a PowerupFailedMsg.

Parameters
nTrackNot read.
nBarThe bar freestyle starts at.
pPlayerThe deploying player.
nUnusedNot read.
Returns
The message's result, non-zero when freestyle was enabled.
Ghidra address:
NTSC-U/C: 0x001c9a28
Ghidra address:
PAL: 0x001cf8c8

Implements Powerup.

◆ Type()

virtual int FreestylePowerup::Type ( )
virtual
Returns
kHudItemFreestyler.
Ghidra address:
NTSC-U/C: 0x001c9a20
Ghidra address:
PAL: 0x001cf8c0

Implements Powerup.


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