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

Powerup placer a LocalPlayer owns. More...

#include <jampowerupplacer.h>

Inheritance diagram for JamPowerupPlacer:
Collaboration diagram for JamPowerupPlacer:

Public Member Functions

 JamPowerupPlacer (LocalPlayer *pOwner, PowerupCollectionI *pCollection)
virtual ~JamPowerupPlacer ()
virtual void DeployPowerup ()
 Deploy the owner's selected powerup on the current bar.
Public Member Functions inherited from PowerupPlacer
 PowerupPlacer ()
virtual ~PowerupPlacer ()
virtual void Activate ()
 Start placing as the owning player starts.
virtual void Deactivate ()
 Stop placing.
virtual void MoveCursor (int nStep)
 Move the placement cursor.
virtual void AnnounceCursor ()
 Announce where the placement cursor rests.
Public Member Functions inherited from MsgSource
virtual ~MsgSource ()
virtual void AddSink (MsgSink *pSink)
 Register a sink, ignoring a sink that is already registered.
virtual void RemoveSink (MsgSink *pSink)
 Unregister the first occurrence of a sink.
void Send (Message *pMsg) const
 Deliver a message to every registered sink, in registration order.
void ClearSinks ()
 Unregister every sink.

Additional Inherited Members

Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Detailed Description

Powerup placer a LocalPlayer owns.

Its RTTI descriptor is at 0x008eff40. It has PowerupPlacer as its one base at offset 0. PowerupPlacer in turn derives from MsgSource. Its table is at 0x007e4b80 and has nine entries with a zero terminator at index 9.

Of those nine it overrides only the destructor at slot 1 and slot 8. Slots 2 and 3 retain the MsgSource pair and slots 4 through 7 retain the empty PowerupPlacer defaults, at the same four addresses the base table records rather than at copies of its own.

The object is 0x1c bytes. The base occupies the first 0x14 including the inherited vptr at +0x10, and the two members below follow it. LocalPlayer allocates one in its constructor at 0x0011e118 and stores the pointer at its own +0xa8.

Constructor & Destructor Documentation

◆ JamPowerupPlacer()

JamPowerupPlacer::JamPowerupPlacer ( LocalPlayer * pOwner,
PowerupCollectionI * pCollection )
Parameters
pOwnerThe player that owns this placer.
pCollectionThe powerup collection the owner holds at its own +0xa4.
Ghidra address:
NTSC-U/C: 0x001cdf88
Ghidra address:
PAL: 0x001d3e40

◆ ~JamPowerupPlacer()

virtual JamPowerupPlacer::~JamPowerupPlacer ( )
virtual
Ghidra address:
NTSC-U/C: 0x001cdc58
Ghidra address:
PAL: 0x001d3b10

Member Function Documentation

◆ DeployPowerup()

virtual void JamPowerupPlacer::DeployPowerup ( )
virtual

Deploy the owner's selected powerup on the current bar.

Slot 8, overriding the base.

The bar is the song position divided by the 1920 ticks of a bar, and the track is the owner's Player slot 4. Both go to PowerupCollectionI::Deploy() on mCollection.

Ghidra address:
NTSC-U/C: 0x001cdfe0
Ghidra address:
PAL: 0x001d3e98

Reimplemented from PowerupPlacer.


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