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

Powerup that neutralises the phrases other players captured on a track. More...

#include <neutralizepowerup.h>

Inheritance diagram for NeutralizePowerup:
Collaboration diagram for NeutralizePowerup:

Public Member Functions

virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Ask the track's PhraseNeutralizer to clear the bars after nBar.
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 neutralises the phrases other players captured on a track.

Its RTTI descriptor is at 0x00901f70. It has Powerup as its one base. The factory builds it for kHudItemNeutralizer with a four-byte allocation and the table at 0x007e40b8. The destructor at 0x001c9b88 is implicitly declared.

Member Function Documentation

◆ Deploy()

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

Ask the track's PhraseNeutralizer to clear the bars after nBar.

A NeutralizeMsg (bar at +0x08, track at +0x0c, player at +0x10) goes out through the player's MsgSource. A handled message plays SND_DEPLOY_NEUTRALIZER, and an unhandled one is followed by a PowerupFailedMsg.

Parameters
nTrackThe track to neutralise.
nBarThe bar the neutralised bars follow.
pPlayerThe deploying player.
nUnusedNot read.
Returns
The message's result.
Ghidra address:
NTSC-U/C: 0x001c9c40
Ghidra address:
PAL: 0x001cfae0

Implements Powerup.

◆ Type()

virtual int NeutralizePowerup::Type ( )
virtual
Returns
kHudItemNeutralizer.
Ghidra address:
NTSC-U/C: 0x001c9c38
Ghidra address:
PAL: 0x001cfad8

Implements Powerup.


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