resonance 1.0.1
Loading...
Searching...
No Matches
OvyAssembly Class Reference

Animation of the head-up display posed by a ramp. More...

#include <ovyassembly.h>

Collaboration diagram for OvyAssembly:

Public Member Functions

 OvyAssembly (const HxStr &name, float flFrom, float flTo, float flDuration)
 Resolve the animation, rewind it to frame 0, and set the ramp's range.
void SetTarget (float flTarget)
 Start the animation moving toward a raw ramp position.
void Jump (float flTarget)
 Move the animation to a raw ramp position at once.
void Execute (float flTime)
 Advance the ramp and pose the animation on its value while it moves.

Public Attributes

LinearAnim mRamp

Detailed Description

Animation of the head-up display posed by a ramp.

The class is not polymorphic and emits no RTTI. Its name comes from the debugging symbols of the North American demo release. The demo's Slide() and Snap() have the same instructions as SetTarget() and Jump(), and the demo's constructor takes the same arguments. The head-up display panel embeds two, at +0x58 over <layout> assembly.view and at +0x74 over HUD1 label swap.tnm.

Constructor & Destructor Documentation

◆ OvyAssembly()

OvyAssembly::OvyAssembly ( const HxStr & name,
float flFrom,
float flTo,
float flDuration )

Resolve the animation, rewind it to frame 0, and set the ramp's range.

The panel inlines the body twice, and this copy has no caller.

Parameters
nameThe object name of the animation.
flFromThe frame at raw ramp position 0.
flToThe frame at raw ramp position 1.
flDurationThe time the ramp takes to cover the range.
Ghidra address:
NTSC-U/C: 0x0042a888
Ghidra address:
PAL: 0x00465bd8

Member Function Documentation

◆ SetTarget()

void OvyAssembly::SetTarget ( float flTarget)

Start the animation moving toward a raw ramp position.

The out-of-line copy has no caller. The title is inferred.

Parameters
flTargetThe raw target.
Ghidra address:
NTSC-U/C: 0x0042a958
Ghidra address:
PAL: 0x00465ca8

◆ Jump()

void OvyAssembly::Jump ( float flTarget)

Move the animation to a raw ramp position at once.

The out-of-line copy has no caller. The title is inferred.

Parameters
flTargetThe raw target.
Ghidra address:
NTSC-U/C: 0x0042a978
Ghidra address:
PAL: 0x00465cc8

◆ Execute()

void OvyAssembly::Execute ( float flTime)

Advance the ramp and pose the animation on its value while it moves.

The panel inlines the body, and this copy has no caller.

Parameters
flTimeThe time the ramp runs against.
Ghidra address:
NTSC-U/C: 0x0042a998
Ghidra address:
PAL: 0x00465ce8

Member Data Documentation

◆ mRamp

LinearAnim OvyAssembly::mRamp

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