wavelength 1.0.0
Loading...
Searching...
No Matches
ovyduelscore.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/hideablepanel.h"
4#include "rnd/rndanimatable.h"
5#include "rnd/rndfont.h"
6#include "rnd/rndtext.h"
7#include "rnd/rndview.h"
8
16public:
18 static constexpr int kNumLetters = 9;
19
26
36 OvyDuelScore(int nIndex, RndView *pHudView);
37
44 ~OvyDuelScore() override = default;
45
53 void SetLitCount(int nCount);
54
63 void Poll(float fSongDelta, float fRealDelta);
64
71 void Reset();
72
81 void ShowLetters(int nCount, bool bSetFonts);
82
83private:
84 int mLitCount;
85 RndView *mView;
86 RndText *mLetters[kNumLetters];
87 float mFlashTime;
88 RndAnimatable *mFlashAnim;
89 RndFont *mFonts[kNumLetterFonts];
90};
HideablePanel(const char *pszAnim, const char *pszDrawable, bool bShown)
Construct a panel and find its animation and drawable.
LetterFont
The fonts of the letters, the indices of mFonts.
Definition ovyduelscore.h:21
@ kLetterFontNew
Definition ovyduelscore.h:23
@ kLetterFontNormal
Definition ovyduelscore.h:22
@ kNumLetterFonts
Definition ovyduelscore.h:24
~OvyDuelScore() override=default
Destroy the score.
void SetLitCount(int nCount)
Light a number of letters.
void Poll(float fSongDelta, float fRealDelta)
Advance the slide and the flash of newly lit letters.
void ShowLetters(int nCount, bool bSetFonts)
Show a number of letters, and choose their fonts.
void Reset()
Darken every letter and show the score.
static constexpr int kNumLetters
The number of letters.
Definition ovyduelscore.h:18
OvyDuelScore(int nIndex, RndView *pHudView)
Construct a hidden score of no letters from HUDd letters <n>.view, its slide HUDd letters <n>....
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Bitmap font, a grid of character cells in the texture of a material's first stage.
Definition rndfont.h:20
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