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

Powerup placer a LocalPlayer owns outside jam. More...

#include <simplifiedgamepowerupplacer.h>

Inheritance diagram for SimplifiedGamePowerupPlacer:
Collaboration diagram for SimplifiedGamePowerupPlacer:

Public Member Functions

 SimplifiedGamePowerupPlacer (LocalPlayer *pOwner, PowerupCollectionI *pCollection)
virtual ~SimplifiedGamePowerupPlacer ()
 The body is the inlined base destructor.
virtual void DeployPowerup ()
 Deploy the selected powerup on the owner's track at 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 outside jam.

It has PowerupPlacer as its one base. Its table is at 0x007e4bd0 and has nine entries. Like JamPowerupPlacer it overrides only the destructor and slot 8, and retains the base defaults for slots 4 through 7. Its unit spans 0x001cdb20 through 0x001cdf84.

The object is 0x1c bytes. LocalPlayer's constructor at 0x0011e198 allocates one in game modes 1 through 3 and stores the pointer at its own +0xa8, with the SinglePowerupCollection it built first as the collection.

Constructor & Destructor Documentation

◆ SimplifiedGamePowerupPlacer()

SimplifiedGamePowerupPlacer::SimplifiedGamePowerupPlacer ( LocalPlayer * pOwner,
PowerupCollectionI * pCollection )
Parameters
pOwnerThe player that owns this placer.
pCollectionThe owner's powerup collection.
Ghidra address:
NTSC-U/C: 0x001cde60
Ghidra address:
PAL: 0x001d3d18

◆ ~SimplifiedGamePowerupPlacer()

virtual SimplifiedGamePowerupPlacer::~SimplifiedGamePowerupPlacer ( )
virtual

The body is the inlined base destructor.

Ghidra address:
NTSC-U/C: 0x001cdb20
Ghidra address:
PAL: 0x001d39d8

Member Function Documentation

◆ DeployPowerup()

virtual void SimplifiedGamePowerupPlacer::DeployPowerup ( )
virtual

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

Does nothing from the level's last bar on, as PlayMap::GetEndBar() reports it.

Ghidra address:
NTSC-U/C: 0x001cdeb8
Ghidra address:
PAL: 0x001d3d70

Reimplemented from PowerupPlacer.


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