Score of a player on the head-up display, with the bar a shared-screen game shows at each checkpoint.
More...
|
| | OvyScore (int nPlayer, int nIndex, RndView *pHudView) |
| | Construct a hidden score of a player.
|
| | ~OvyScore () override |
| | Destroy the score, its slide, and its power-up icon.
|
| void | Show (bool bShow) override |
| | Slide the score in or out.
|
| void | Reset () |
| | Empty the score and stop the checkpoint display.
|
| void | SetScore (int nScore) |
| | Record a score, which shows after 600 milliseconds.
|
| void | Poll (float fDelta, float fUnused, float fDeltaTicks) |
| | Advance the slide, the checkpoint display, the score text, and the power-up icon.
|
| void | Draw () |
| | Draw the score.
|
| void | ShowCheckpoint (float fShare, int nPlace) |
| | Start the checkpoint display.
|
| HudPowerup * | GetPowerup () const |
| int | GetScore () const |
| | HideablePanel (const char *pszAnim, const char *pszDrawable, bool bShown) |
| | Construct a panel and find its animation and drawable.
|
| virtual | ~HideablePanel ()=default |
| | Destroy the panel.
|
| virtual void | ShowNow (bool bShow) |
| | Show or hide the panel at once.
|
| void | SetObjects (const char *pszAnim, const char *pszDrawable, bool bShown) |
| | Find the animation and the drawable of the panel, and show or hide it at once.
|
| void | Poll () |
| | Advance the slide by sDeltaTime, and show the drawable while the panel is not hidden.
|
|
| static constexpr int | kNumCheckpointPositions = 4 |
| | The number of places of the ranking at a checkpoint.
|
| static float | sMoveInTicks |
| | The ticks the score takes to move in, score_checkpoint_move_in_ticks.
|
| static float | sBarGrowTicks |
| | The ticks the bar takes to grow, score_checkpoint_bar_grow_ticks.
|
| static float | sStableTicks |
| | The ticks the bar rests, score_checkpoint_stable_ticks.
|
| static float | sFadeTicks |
| | The ticks the bar takes to fade, score_checkpoint_fade_ticks.
|
| static float | sMoveOutTicks |
| | The ticks the score takes to move back, score_checkpoint_move_out_ticks.
|
| static Vector3 | sCheckpointPositions [kNumCheckpointPositions] |
| | The places of the ranking, score_checkpoint_pos_1 to score_checkpoint_pos_4.
|
| static constexpr float | kShownFrame = 240.0f |
| | The frame of the animation at which the panel is fully shown.
|
| static int | sSnap |
| | Whether Show() moves a panel at once rather than sliding it.
|
| static float | sDeltaTime |
| | The time Poll() advances every panel by.
|
| static RndAnimatable * | sMaterialAnim |
| | The animation of the two-dimensional materials, mat_2d_EE.anim, or null.
|
| static float | sMaterialFrame |
| | The frame PoseMaterials() poses sMaterialAnim at.
|
Score of a player on the head-up display, with the bar a shared-screen game shows at each checkpoint.
The RTTI records the class as deriving from HideablePanel. The object is 0x94 bytes. At a checkpoint the score moves to its place in the ranking, its bar grows to the player's share, rests, fades, and the score moves back.
| OvyScore::OvyScore |
( |
int | nPlayer, |
|
|
int | nIndex, |
|
|
RndView * | pHudView ) |
Construct a hidden score of a player.
The scene objects are <hud> score<n>.mesh, <hud> score<n>.tnm, <hud> score<n>.txt, and <hud> pts<n>.mesh. A shared-screen game adds the bar <hud> score bar<n>.mesh and its objects, and a game of local players adds the slide <hud> pts<n> hide.tnm. A local player of a game that is neither a remix nor a duel has a power-up icon.
- Parameters
-
| nPlayer | The player. |
| nIndex | The number of the score, from 0. |
| pHudView | The view of the head-up display. |
- Ghidra address:
- NTSC-U/C: 0x001bd080
- Ghidra address:
- PAL: 0x001c5e20