|
resonance 1.0.1
|
Powerup that catches the next bars of a track automatically. More...
#include <autocatchpowerup.h>


Public Member Functions | |
| virtual int | Deploy (int nTrack, int nBar, Player *pPlayer, int nUnused) |
| Ask the catchers to play bars for the player. | |
| 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 catches the next bars of a track automatically.
Its RTTI descriptor is at 0x00901f60. It has Powerup as its one base. The factory builds it for kHudItemAutocatcher with a four-byte allocation and the table at 0x007e4130. The destructor at 0x001c94f8 is implicitly declared.
|
virtual |
Ask the catchers to play bars for the player.
One AutoCatchMsg per bar, from nBar on, goes out through the player's MsgSource: one bar when Player::GetGameMode() reports 1 and four otherwise. When any catcher marked a message handled, a DeployedPowerupMsg covering the bars follows and SND_DEPLOY_AUTOCATCHER plays. Otherwise a PowerupFailedMsg goes out.
| nTrack | The track. |
| nBar | The first bar. |
| pPlayer | The deploying player. |
| nUnused | Not read. |
Implements Powerup.
|
virtual |
Implements Powerup.