|
resonance 1.0.1
|
Powerup indicator of one player's track display on the head-up display. More...
#include <hudpowerup.h>
Public Member Functions | |
| HudPowerup (int nIndex) | |
| Resolve the container and the six powerup views, and show nothing. | |
| void | Show (int nKind) |
| Show the view of one item kind, or nothing. | |
Powerup indicator of one player's track display on the head-up display.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from the pup objects it resolves. HudTrack embeds one at +0x0c.
The indicator is one container view, <layout> pup<n>.view, whose scene Show() refills with the view of one powerup kind. The six kinds with a view are the five powerups and the multiplier.
| HudPowerup::HudPowerup | ( | int | nIndex | ) |
Resolve the container and the six powerup views, and show nothing.
Shows the indicator's mesh, <layout> pup<n>.mesh, only in kPlayModeGame.
| nIndex | The track display number that fills <n> and the views' d. |
| void HudPowerup::Show | ( | int | nKind | ) |
Show the view of one item kind, or nothing.
Empties the container's draw, transform, and animation lists, then adds the kind's view to all three after showing it. For a kind with no view, the container stays empty. The title is inferred.
| nKind | The PowerupType to show, or kHudItemNone. |