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

Button icon of a lane that flies to a place on the screen and pulses there. More...

#include <hudflyingbutton.h>

Public Member Functions

 HudFlyingButton (int nLane, RndView *pHudView)
 Construct a hidden icon of a lane from HUD flying button <n>.txt and its blur.
 ~HudFlyingButton ()
 Destroy the icon and the shared flight curve.
void Reset ()
 Hide the icon and stop its flight.
void Fly (const Vector2 *pFrom, const Vector2 *pTo)
 Fly the icon from one place to another, or put it at the place when both are the same.
void Hide ()
 Hide the icon.
void SetPulse (bool bPulse)
 Start or stop the pulse of the icon.
void Poll (float fRealDelta)
 Advance the flight, and start the pulse once the icon arrives.
void Draw ()
 Pulse the icon and draw its blur while it shows.
RndText * GetText () const

Detailed Description

Button icon of a lane that flies to a place on the screen and pulses there.

The class is not polymorphic and emits no RTTI. The object is 0x20 bytes. The tutorial shows which button to press with it.

Constructor & Destructor Documentation

◆ HudFlyingButton()

HudFlyingButton::HudFlyingButton ( int nLane,
RndView * pHudView )

Construct a hidden icon of a lane from HUD flying button <n>.txt and its blur.

The icon of lane 0 reads the flight curve button_icon_interp of the gfx section of the configuration, which every icon shares.

Parameters
nLaneThe lane.
pHudViewThe layout view of the head-up display. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001bfa88
Ghidra address:
PAL: 0x001c8828

◆ ~HudFlyingButton()

HudFlyingButton::~HudFlyingButton ( )

Destroy the icon and the shared flight curve.

Ghidra address:
NTSC-U/C: 0x001bfc18
Ghidra address:
PAL: 0x001c89b8

Member Function Documentation

◆ Reset()

void HudFlyingButton::Reset ( )

Hide the icon and stop its flight.

Ghidra address:
NTSC-U/C: 0x001bfc88
Ghidra address:
PAL: 0x001c8a28

◆ Fly()

void HudFlyingButton::Fly ( const Vector2 * pFrom,
const Vector2 * pTo )

Fly the icon from one place to another, or put it at the place when both are the same.

Parameters
pFromThe place the flight starts at, as x and z.
pToThe place the flight ends at.
Ghidra address:
NTSC-U/C: 0x001bfcf0
Ghidra address:
PAL: 0x001c8a90

◆ Hide()

void HudFlyingButton::Hide ( )

Hide the icon.

Ghidra address:
NTSC-U/C: 0x001bfdf8
Ghidra address:
PAL: 0x001c8b98

◆ SetPulse()

void HudFlyingButton::SetPulse ( bool bPulse)

Start or stop the pulse of the icon.

Parameters
bPulseWhether the icon pulses.
Ghidra address:
NTSC-U/C: 0x001bfe40
Ghidra address:
PAL: 0x001c8be0

◆ Poll()

void HudFlyingButton::Poll ( float fRealDelta)

Advance the flight, and start the pulse once the icon arrives.

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

◆ Draw()

void HudFlyingButton::Draw ( )

Pulse the icon and draw its blur while it shows.

Ghidra address:
NTSC-U/C: 0x001bffb8
Ghidra address:
PAL: 0x001c8d58

◆ GetText()

RndText * HudFlyingButton::GetText ( ) const
inline
Returns
HUD flying button <n>.txt, the glyph of the button.

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