wavelength 1.0.0
Loading...
Searching...
No Matches
OvyDuelScore Class Reference

Score of a duel player: the letters of AMPLITUDE the player has lit. More...

#include <ovyduelscore.h>

Inheritance diagram for OvyDuelScore:
Collaboration diagram for OvyDuelScore:

Public Types

enum  LetterFont { kLetterFontNormal = 0 , kLetterFontNew = 1 , kNumLetterFonts = 2 }
 The fonts of the letters, the indices of mFonts. More...

Public Member Functions

 OvyDuelScore (int nIndex, RndView *pHudView)
 Construct a hidden score of no letters from HUDd letters <n>.view, its slide HUDd letters <n>.tnm, and the letters HUDd letter<i> <n>.txt.
 ~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 Reset ()
 Darken every letter and show the score.
void ShowLetters (int nCount, bool bSetFonts)
 Show a number of letters, and choose their fonts.
Public Member Functions inherited from HideablePanel
 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 Show (bool bShow)
 Slide the panel in or out, or move it at once while sSnap is set.
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 Public Attributes

static constexpr int kNumLetters = 9
 The number of letters.
Static Public Attributes inherited from HideablePanel
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.

Additional Inherited Members

Static Public Member Functions inherited from HideablePanel
static void ClearSnap ()
 Clear sSnap.
static void SetDeltaTime (float fDeltaTime)
 Set the time the next Poll() of every panel advances by.
static void Init ()
 Find the animation of the two-dimensional materials and the frame it rests at.
static void Terminate ()
 Forget the animation of the two-dimensional materials.
static void PoseMaterials ()
 Pose the animation of the two-dimensional materials at its resting frame.
Protected Attributes inherited from HideablePanel
RampAnimator mSlide

Detailed Description

Score of a duel player: the letters of AMPLITUDE the player has lit.

The RTTI records the class as deriving from HideablePanel. The object is 0x58 bytes. Letters lit by a change show in the highlight font for 960 milliseconds once the points arrive.

Member Enumeration Documentation

◆ LetterFont

The fonts of the letters, the indices of mFonts.

Enumerator
kLetterFontNormal 

HUDd letter no.font.

kLetterFontNew 

HUDd letter hi <n>.font, for a letter lit by the change.

kNumLetterFonts 

The number of fonts.

Constructor & Destructor Documentation

◆ OvyDuelScore()

OvyDuelScore::OvyDuelScore ( int nIndex,
RndView * pHudView )

Construct a hidden score of no letters from HUDd letters <n>.view, its slide HUDd letters <n>.tnm, and the letters HUDd letter<i> <n>.txt.

Parameters
nIndexThe number of the score, from 0.
pHudViewThe layout view of the head-up display. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001bde48
Ghidra address:
PAL: 0x001c6be8

◆ ~OvyDuelScore()

OvyDuelScore::~OvyDuelScore ( )
overridedefault

Destroy the score.

Ghidra address:
NTSC-U/C: 0x003673b8
Ghidra address:
PAL: 0x003d5ae8

Member Function Documentation

◆ SetLitCount()

void OvyDuelScore::SetLitCount ( int nCount)

Light a number of letters.

Parameters
nCountThe number of lit letters.
Ghidra address:
NTSC-U/C: 0x001be108
Ghidra address:
PAL: 0x001c6ea8

◆ Poll()

void OvyDuelScore::Poll ( float fSongDelta,
float fRealDelta )

Advance the slide and the flash of newly lit letters.

Parameters
fSongDeltaThe song time since the last poll. The routine does not read it.
fRealDeltaThe real time since the last poll. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001be140
Ghidra address:
PAL: 0x001c6ee0

◆ Reset()

void OvyDuelScore::Reset ( )

Darken every letter and show the score.

Ghidra address:
NTSC-U/C: 0x001be230
Ghidra address:
PAL: 0x001c6fd0

◆ ShowLetters()

void OvyDuelScore::ShowLetters ( int nCount,
bool bSetFonts )

Show a number of letters, and choose their fonts.

Parameters
nCountThe number of letters to show.
bSetFontsWhether to choose the fonts and start the flash of new letters.
Ghidra address:
NTSC-U/C: 0x001be278
Ghidra address:
PAL: 0x001c7018

Member Data Documentation

◆ kNumLetters

int OvyDuelScore::kNumLetters = 9
staticconstexpr

The number of letters.


The documentation for this class was generated from the following file: