|
resonance 1.0.1
|
One player's track display on the head-up display. More...
#include <hudtrack.h>

Public Member Functions | |
| HudTrack (Player *pPlayer, int nIndex) | |
| Build the display for one player. | |
| void | SetFrame (float flFrame, float flTime) |
| Advance every animated part. | |
Public Attributes | |
| HudEnergy | mEnergy |
| HudPowerup | mPowerup |
| HudTextMessage | mTextMessage |
| HudLoop | mLoop |
| HudTrackLabel | mTrackLabel |
| HudEffects | mEffects |
| HudPoints | mPoints |
| HudCountdown | mCountdown |
| int | mBlockedCatches |
| int | mTrack |
| int | mReservedE8 |
| int | mDeployedPowerup |
| Player * | mPlayer |
One player's track display on the head-up display.
The class is not polymorphic and emits no RTTI. Overlay allocates one per world player that has a slot, with the untagged scalar allocator (0xf4 bytes, the size its constructor requests at 0x0041cf50), and stores the pointers in its vector at +0x08. No descriptor, tag, or file path identifies the class, and its name is inferred from the eight parts it aggregates.
The class declares no destructor. The routine at 0x0042aa18 that Overlay's destructor calls on each element is the compiler's deleting destructor, which runs the effect lamps' vector teardown and ~HudTextMessage() and then the scalar free.
Every member is public because Overlay's handlers access the parts directly. They look a display up by mPlayer, set the track name through mTrackLabel, record the track in mTrack, and drive mPoints, mEffects, and the words at +0xe0 and +0xec.
| HudTrack::HudTrack | ( | Player * | pPlayer, |
| int | nIndex ) |
Build the display for one player.
| pPlayer | The player the display shows. |
| nIndex | The display number, counted over the players with a slot from 0. |
| void HudTrack::SetFrame | ( | float | flFrame, |
| float | flTime ) |
Advance every animated part.
The energy bar and the countdown follow the song position, and the text message and the points readout follow the time.
| flFrame | The song position, in MIDI ticks. |
| flTime | The time the text message and the points readout run against. |
| HudEnergy HudTrack::mEnergy |
The shared energy bar. +0x00
| HudPowerup HudTrack::mPowerup |
The powerup indicator. +0x0c
| HudTextMessage HudTrack::mTextMessage |
<layout> textmsg<n>. +0x28
| HudLoop HudTrack::mLoop |
The loop indicator. +0x48
| HudTrackLabel HudTrack::mTrackLabel |
The track name label. +0x50
| HudEffects HudTrack::mEffects |
The effect lamps. +0x58
| HudPoints HudTrack::mPoints |
The points readout. +0x78
| HudCountdown HudTrack::mCountdown |
The bar countdown. +0xc4
| int HudTrack::mBlockedCatches |
Blocked catches in a row, as Overlay::OnCatch() counts. +0xe0
| int HudTrack::mTrack |
The track the player selected. +0xe4
| int HudTrack::mReservedE8 |
The recovered routines never access it. +0xe8
| int HudTrack::mDeployedPowerup |
Set once Overlay::OnDeployedPowerup() runs; never read. +0xec
| Player* HudTrack::mPlayer |
The player the display shows. +0xf0