|
resonance 1.0.1
|
Powerup placer a LocalPlayer owns. More...
#include <jampowerupplacer.h>


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. | |
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.
| JamPowerupPlacer::JamPowerupPlacer | ( | LocalPlayer * | pOwner, |
| PowerupCollectionI * | pCollection ) |
| pOwner | The player that owns this placer. |
| pCollection | The powerup collection the owner holds at its own +0xa4. |
|
virtual |
|
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.
Reimplemented from PowerupPlacer.