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

Powerup that bumps the other players off their tracks. More...

#include <bumppowerup.h>

Inheritance diagram for BumpPowerup:
Collaboration diagram for BumpPowerup:

Public Member Functions

virtual int Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused)
 Send a BumpPacket to every other game system.
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 bumps the other players off their tracks.

Its RTTI descriptor is at 0x008ef6a0. It has Powerup as its one base. The factory builds it for kHudItemBumper with a four-byte allocation and the table at 0x007e4090. The destructor at 0x001c9d28 is implicitly declared.

Member Function Documentation

◆ Deploy()

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

Send a BumpPacket to every other game system.

The packet carries the player, the bar at +0x1c, the track at +0x20, and a result at +0x24 that starts at zero. It goes out through the player's MsgSource. A non-zero result plays SND_DEPLOY_BUMPER, and a zero one is followed by a PowerupFailedMsg.

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

Implements Powerup.

◆ Type()

virtual int BumpPowerup::Type ( )
virtual
Returns
kHudItemBumper.
Ghidra address:
NTSC-U/C: 0x001c9dd8
Ghidra address:
PAL: 0x001cfc78

Implements Powerup.


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