|
wavelength 1.0.0
|
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. | |
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.
| enum Freestylus::Type |
| Freestylus::Freestylus | ( | GfxTunnel * | pTunnel, |
| int | nType ) |
Find the views, animations, and particle systems of the freestylus.
| pTunnel | The tunnel, which the constructor does not read. |
| nType | The kind of freestyle, one of Type. |
| Freestylus::~Freestylus | ( | ) |
Destroy the freestylus.
| void Freestylus::Setup | ( | float | flScale | ) |
Scale the freestylus and its particles, the first time only.
| flScale | The scale, freestyler_scale. |
| void Freestylus::Reset | ( | ) |
End the flash and restart the particles of the button.
| void Freestylus::SetPitchColor | ( | float | flPitch, |
| float | flColor ) |
Pose the pitch and the colour of the freestylus.
| flPitch | The pitch, from 0 to 1. |
| flColor | The colour, from 0 to 1. |
| 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.
| flTime | The time since the last update. |
| flTumbleX | The rate of the turn about the Y axis. |
| flTumbleY | The rate of the turn about the X axis. |
| void Freestylus::Flash | ( | ) |
Start the flash.
| void Freestylus::ClearParticles | ( | ) |
Free every particle of the freestylus and of its arm.
| void Freestylus::Update | ( | bool | bPlaying, |
| float | flTicks, | ||
| float | flTime, | ||
| float | flScale ) |
Advance the animations and scale the freestylus.
| bPlaying | Whether the player plays, which advances the particles of the button. |
| flTicks | The ticks since the last update, which the freestylus does not read. |
| flTime | The time since the last update. |
| flScale | The scale of the assembly, from 0 to 1. |
| void Freestylus::Draw | ( | RndTransformable * | pParent, |
| int | bAssembled ) |
Draw the freestylus under a parent.
| pParent | The transform the freestylus hangs from. |
| bAssembled | Whether the ship has assembled, which the freestylus does not read. |
|
inline |
|
inline |
|
static |
The angle of the tumble per unit of its rate, tumble_angle_per_ms.