|
resonance 1.0.1
|
Powerup that toggles one jam effect on a track. More...
#include <effectpowerup.h>


Public Member Functions | |
| EffectPowerup (int nEffectType) | |
| Record the kind this powerup reports. | |
| virtual int | Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused) |
| Ask the track's JamEffectsMgr to toggle the effect for one bar. | |
| 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. | |
Powerup that toggles one jam effect on a track.
Its RTTI descriptor is at 0x008efb50. It has Powerup as its one base. The factory's shared arm builds it for the six effect kinds, kHudItemVolume through kHudItemChorus, with an eight-byte allocation and the table at 0x007e4068. The destructor at 0x001c9f08 is implicitly declared.
|
inlineexplicit |
Record the kind this powerup reports.
Inline. CreateForType() expands it and stores the kind after the table.
| nEffectType | The kind, a PowerupType from kHudItemVolume through kHudItemChorus. |
|
virtual |
Ask the track's JamEffectsMgr to toggle the effect for one bar.
A JamEffectMsg (bar at +0x04, track at +0x08, mEffectType at +0x0c, player at +0x10) goes out through the player's MsgSource.
| nTrack | The track. |
| nBar | The bar. |
| pPlayer | The deploying player. |
| nUnused | Not read. |
Implements Powerup.
|
virtual |
Implements Powerup.