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

The freestylus, the instrument a ship becomes for a freestyle. More...

#include <freestylus.h>

Public Types

enum  Type { kTypeAxe = 1 , kTypeScratch = 3 }
 The kinds of freestyle. More...

Public Member Functions

 Freestylus (GfxTunnel *pTunnel, int nType)
 Find the views, animations, and particle systems of the freestylus.
 ~Freestylus ()
 Destroy the freestylus.
void Setup (float flScale)
 Scale the freestylus and its particles, the first time only.
void Reset ()
 End the flash and restart the particles of the button.
void SetPitchColor (float flPitch, float flColor)
 Pose the pitch and the colour of the freestylus.
void Spin (float flTime, float flTumbleX, float flTumbleY)
 Turn the basis of the tumble about its X and Y axes, and keep it orthonormal.
void Flash ()
 Start the flash.
void ClearParticles ()
 Free every particle of the freestylus and of its arm.
void Update (bool bPlaying, float flTicks, float flTime, float flScale)
 Advance the animations and scale the freestylus.
void Draw (RndTransformable *pParent, int bAssembled)
 Draw the freestylus under a parent.
RampAnimator & GetBeamGrow ()
RampAnimator & GetSample ()

Static Public Attributes

static float sTumbleAnglePerMs
 The angle of the tumble per unit of its rate, tumble_angle_per_ms.

Detailed Description

The freestylus, the instrument a ship becomes for a freestyle.

The class is not polymorphic, and the name comes from the names of its views. The object is 0xe0 bytes, and the tunnel has one, which the freestyles of every player share. The stick of the player tumbles the freestylus, and the beams grow while the player plays.

Member Enumeration Documentation

◆ Type

The kinds of freestyle.

Enumerator
kTypeAxe 

The guitar freestyle, axe.

kTypeScratch 

The scratch freestyle, scratch.

Constructor & Destructor Documentation

◆ Freestylus()

Freestylus::Freestylus ( GfxTunnel * pTunnel,
int nType )

Find the views, animations, and particle systems of the freestylus.

Parameters
pTunnelThe tunnel, which the constructor does not read.
nTypeThe kind of freestyle, one of Type.
Ghidra address:
NTSC-U/C: 0x001e7570
Ghidra address:
PAL: 0x001f0310

◆ ~Freestylus()

Freestylus::~Freestylus ( )

Destroy the freestylus.

Ghidra address:
NTSC-U/C: 0x001e7a80
Ghidra address:
PAL: 0x001f0820

Member Function Documentation

◆ Setup()

void Freestylus::Setup ( float flScale)

Scale the freestylus and its particles, the first time only.

Parameters
flScaleThe scale, freestyler_scale.
Ghidra address:
NTSC-U/C: 0x001e7ae8
Ghidra address:
PAL: 0x001f0888

◆ Reset()

void Freestylus::Reset ( )

End the flash and restart the particles of the button.

Ghidra address:
NTSC-U/C: 0x001e7c58
Ghidra address:
PAL: 0x001f09f8

◆ SetPitchColor()

void Freestylus::SetPitchColor ( float flPitch,
float flColor )

Pose the pitch and the colour of the freestylus.

Parameters
flPitchThe pitch, from 0 to 1.
flColorThe colour, from 0 to 1.
Ghidra address:
NTSC-U/C: 0x001e7c88
Ghidra address:
PAL: 0x001f0a28

◆ Spin()

void Freestylus::Spin ( float flTime,
float flTumbleX,
float flTumbleY )

Turn the basis of the tumble about its X and Y axes, and keep it orthonormal.

Parameters
flTimeThe time since the last update.
flTumbleXThe rate of the turn about the Y axis.
flTumbleYThe rate of the turn about the X axis.
Ghidra address:
NTSC-U/C: 0x001e7ce0
Ghidra address:
PAL: 0x001f0a80

◆ Flash()

void Freestylus::Flash ( )

Start the flash.

Ghidra address:
NTSC-U/C: 0x001e80b8
Ghidra address:
PAL: 0x001f0e58

◆ ClearParticles()

void Freestylus::ClearParticles ( )

Free every particle of the freestylus and of its arm.

Ghidra address:
NTSC-U/C: 0x001e80d0
Ghidra address:
PAL: 0x001f0e70

◆ Update()

void Freestylus::Update ( bool bPlaying,
float flTicks,
float flTime,
float flScale )

Advance the animations and scale the freestylus.

Parameters
bPlayingWhether the player plays, which advances the particles of the button.
flTicksThe ticks since the last update, which the freestylus does not read.
flTimeThe time since the last update.
flScaleThe scale of the assembly, from 0 to 1.
Ghidra address:
NTSC-U/C: 0x001e8130
Ghidra address:
PAL: 0x001f0ed0

◆ Draw()

void Freestylus::Draw ( RndTransformable * pParent,
int bAssembled )

Draw the freestylus under a parent.

Parameters
pParentThe transform the freestylus hangs from.
bAssembledWhether the ship has assembled, which the freestylus does not read.
Ghidra address:
NTSC-U/C: 0x001e81f8
Ghidra address:
PAL: 0x001f0f98

◆ GetBeamGrow()

RampAnimator & Freestylus::GetBeamGrow ( )
inline
Returns
freestylus beamgrow.mnm.

◆ GetSample()

RampAnimator & Freestylus::GetSample ( )
inline
Returns
freestylus sample.tnm.

Member Data Documentation

◆ sTumbleAnglePerMs

float Freestylus::sTumbleAnglePerMs
static

The angle of the tumble per unit of its rate, tumble_angle_per_ms.

Ghidra address:
NTSC-U/C: 0x003afab0
Ghidra address:
PAL: 0x0042e948

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