wavelength 1.0.0
Loading...
Searching...
No Matches
GfxTunnel::TrackData Class Reference

The state of one track, 0x2c bytes. More...

#include <gfxtunnel.h>

Public Member Functions

 TrackData ()
 Construct a track with no index, no bars, and no capture.
std::list< BarData >::iterator FindBar (float flTick, float flNow, int *pbFound)
 Find the first bar that ends after a tick, dropping the bars that ended more than half a bar before the song.

Public Attributes

int mIndex
int mInstrument
int mType
std::list< BarData > mBars
std::vector< signed char > mPlayers
float mCaptureStartTick
float mCaptureEndTick

Static Public Attributes

static constexpr int kNoType = 5
 The type of a track before the tunnel gives it one.
static constexpr float kNoTick = -1e9f
 The tick of a capture that has not happened.

Detailed Description

The state of one track, 0x2c bytes.

Constructor & Destructor Documentation

◆ TrackData()

GfxTunnel::TrackData::TrackData ( )
inline

Construct a track with no index, no bars, and no capture.

Member Function Documentation

◆ FindBar()

std::list< BarData >::iterator GfxTunnel::TrackData::FindBar ( float flTick,
float flNow,
int * pbFound )

Find the first bar that ends after a tick, dropping the bars that ended more than half a bar before the song.

Parameters
flTickThe tick.
flNowThe tick of the song.
pbFoundReceives whether the bar starts at or before flTick.
Returns
The bar, or the end of mBars.
Ghidra address:
NTSC-U/C: 0x001de340
Ghidra address:
PAL: 0x001e70e0

Member Data Documentation

◆ kNoType

int GfxTunnel::TrackData::kNoType = 5
staticconstexpr

The type of a track before the tunnel gives it one.

◆ kNoTick

float GfxTunnel::TrackData::kNoTick = -1e9f
staticconstexpr

The tick of a capture that has not happened.

◆ mIndex

int GfxTunnel::TrackData::mIndex

The track, or -1.

◆ mInstrument

int GfxTunnel::TrackData::mInstrument

The instrument, one of GfxManager::Instrument.

◆ mType

int GfxTunnel::TrackData::mType

The type of the track.

◆ mBars

std::list<BarData> GfxTunnel::TrackData::mBars

The bars set on the track, in order of tick.

◆ mPlayers

std::vector<signed char> GfxTunnel::TrackData::mPlayers

The players on the track.

◆ mCaptureStartTick

float GfxTunnel::TrackData::mCaptureStartTick

The tick the last capture of the track started.

◆ mCaptureEndTick

float GfxTunnel::TrackData::mCaptureEndTick

The tick after the last captured phrase.


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