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

Powerup that cripples the other players. More...

#include <cripplepowerup.h>

Inheritance diagram for CripplePowerup:
Collaboration diagram for CripplePowerup:

Public Member Functions

virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Ask the game to cripple the other players.
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 cripples the other players.

Its RTTI descriptor is at 0x008f08a0. It has Powerup as its one base. The factory builds it for kHudItemCrippler with a four-byte allocation and the table at 0x007e4108. The destructor at 0x001c9778 is implicitly declared.

Member Function Documentation

◆ Deploy()

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

Ask the game to cripple the other players.

A CrippleMsg (player at +0x08, track at +0x0c, bar at +0x10) 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_CRIPPLER plays. An unhandled one is followed by a PowerupFailedMsg.

Parameters
nTrackThe track.
nBarThe bar.
pPlayerThe deploying player.
nUnusedNot read.
Returns
The message's result.
Ghidra address:
NTSC-U/C: 0x001c9830
Ghidra address:
PAL: 0x001cf6d0

Implements Powerup.

◆ Type()

virtual int CripplePowerup::Type ( )
virtual
Returns
kHudItemCrippler.
Ghidra address:
NTSC-U/C: 0x001c9828
Ghidra address:
PAL: 0x001cf6c8

Implements Powerup.


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