70 void Show(
bool bShow)
override;
101 void Poll(
float fDelta,
float fUnused,
float fDeltaTicks);
170 return mPowerup.get();
179 std::unique_ptr<HudPowerup> mPowerup;
185 std::unique_ptr<RampAnimator> mPointsSlide;
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
Icon of the power-up a player holds, with its name.
Definition hudpowerup.h:14
Straight-line interpolator.
Definition interpolator.h:99
void Reset()
Empty the score and stop the checkpoint display.
HudPowerup * GetPowerup() const
Definition ovyscore.h:169
void Draw()
Draw the score.
static constexpr int kNumCheckpointPositions
The number of places of the ranking at a checkpoint.
Definition ovyscore.h:37
static Vector3 sCheckpointPositions[kNumCheckpointPositions]
The places of the ranking, score_checkpoint_pos_1 to score_checkpoint_pos_4.
Definition ovyscore.h:166
~OvyScore() override
Destroy the score, its slide, and its power-up icon.
void Show(bool bShow) override
Slide the score in or out.
static float sFadeTicks
The ticks the bar takes to fade, score_checkpoint_fade_ticks.
Definition ovyscore.h:151
OvyScore(int nPlayer, int nIndex, RndView *pHudView)
Construct a hidden score of a player.
static float sMoveInTicks
The ticks the score takes to move in, score_checkpoint_move_in_ticks.
Definition ovyscore.h:127
void ShowCheckpoint(float fShare, int nPlace)
Start the checkpoint display.
void SetScore(int nScore)
Record a score, which shows after 600 milliseconds.
static float sStableTicks
The ticks the bar rests, score_checkpoint_stable_ticks.
Definition ovyscore.h:143
void Poll(float fDelta, float fUnused, float fDeltaTicks)
Advance the slide, the checkpoint display, the score text, and the power-up icon.
int GetScore() const
Definition ovyscore.h:174
static float sBarGrowTicks
The ticks the bar takes to grow, score_checkpoint_bar_grow_ticks.
Definition ovyscore.h:135
static float sMoveOutTicks
The ticks the score takes to move back, score_checkpoint_move_out_ticks.
Definition ovyscore.h:159
State
The stages of the checkpoint display, the values of mState.
Definition ovyscore.h:28
@ kStateFade
Definition ovyscore.h:32
@ kStateMoveIn
Definition ovyscore.h:30
@ kStateMoveOut
Definition ovyscore.h:33
@ kStateIdle
Definition ovyscore.h:29
@ kStateGrow
Definition ovyscore.h:31
Value that moves toward a target along an interpolator, and poses an animation on the value.
Definition rampanimator.h:14
Mix-in for an object that draws itself and then a list of other drawables.
Definition rnddrawable.h:16
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14