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

The gems of one catch track, in the order of their ticks. More...

#include <catchtrackdata.h>

Public Member Functions

 CatchTrackData (int nLengthTicks)
 Construct an empty list with room for 500 gems.
 CatchTrackData ()
 Construct an empty list with room for 500 gems and no length.
 ~CatchTrackData ()
 Release the gems.
void AddGem (const Gem &gem)
 Insert a gem at the place its tick orders it, unless it is past the end of the track.
void EraseSpan (PlayMap *pPlayMap, int nStartTick, int nEndTick)
 Remove the gems of a span of the song, which wraps past the end of the track when it ends before it starts.
int GetNumGems () const
 Report the number of gems.
Gem * GetGem (int nIndex)
 Report one gem.
const Gem * GetGem (int nIndex) const
 Report one gem.
int FindGemAt (int nTick) const
 Find the gem at a tick.
int FindGem (int nTick) const
 Find the first gem at or after a tick.

Static Public Member Functions

static void InsertSorted (const Gem &gem, std::vector< Gem > &gems, int)
 Insert a gem into a vector of gems at the place its tick and lane order it.

Detailed Description

The gems of one catch track, in the order of their ticks.

The RTTI includes the class name. The class is not polymorphic. The object is 0x14 bytes. Gems at the same tick are in the order of their lanes.

Constructor & Destructor Documentation

◆ CatchTrackData() [1/2]

CatchTrackData::CatchTrackData ( int nLengthTicks)
explicit

Construct an empty list with room for 500 gems.

Parameters
nLengthTicksThe length of the track in ticks.
Ghidra address:
NTSC-U/C: 0x0014bc68
Ghidra address:
PAL: 0x0014d608

◆ CatchTrackData() [2/2]

CatchTrackData::CatchTrackData ( )

Construct an empty list with room for 500 gems and no length.

Ghidra address:
NTSC-U/C: 0x0014bca8
Ghidra address:
PAL: 0x0014d648

◆ ~CatchTrackData()

CatchTrackData::~CatchTrackData ( )

Release the gems.

Ghidra address:
NTSC-U/C: 0x0014bce8
Ghidra address:
PAL: 0x0014d688

Member Function Documentation

◆ AddGem()

void CatchTrackData::AddGem ( const Gem & gem)

Insert a gem at the place its tick orders it, unless it is past the end of the track.

The name is inferred.

Parameters
gemThe gem.
Ghidra address:
NTSC-U/C: 0x0014bd90
Ghidra address:
PAL: 0x0014d730

◆ InsertSorted()

void CatchTrackData::InsertSorted ( const Gem & gem,
std::vector< Gem > & gems,
int  )
static

Insert a gem into a vector of gems at the place its tick and lane order it.

The name is inferred. The third argument is unused.

Parameters
gemThe gem.
gemsThe gems, in order.
Ghidra address:
NTSC-U/C: 0x0034a320
Ghidra address:
PAL: 0x003b7750

◆ EraseSpan()

void CatchTrackData::EraseSpan ( PlayMap * pPlayMap,
int nStartTick,
int nEndTick )

Remove the gems of a span of the song, which wraps past the end of the track when it ends before it starts.

The name is inferred.

Parameters
pPlayMapThe map of the song positions.
nStartTickThe first song tick of the span.
nEndTickThe song tick after the span.
Ghidra address:
NTSC-U/C: 0x0014c028
Ghidra address:
PAL: 0x0014d9c8

◆ GetNumGems()

int CatchTrackData::GetNumGems ( ) const

Report the number of gems.

Returns
The number of gems.
Ghidra address:
NTSC-U/C: 0x0014c298
Ghidra address:
PAL: 0x0014dc38

◆ GetGem() [1/2]

Gem * CatchTrackData::GetGem ( int nIndex)

Report one gem.

Parameters
nIndexThe index of the gem.
Returns
The gem.
Ghidra address:
NTSC-U/C: 0x0014c2b8
Ghidra address:
PAL: 0x0014dc58

◆ GetGem() [2/2]

const Gem * CatchTrackData::GetGem ( int nIndex) const

Report one gem.

Parameters
nIndexThe index of the gem.
Returns
The gem.
Ghidra address:
NTSC-U/C: 0x0014c2d0
Ghidra address:
PAL: 0x0014dc70

◆ FindGemAt()

int CatchTrackData::FindGemAt ( int nTick) const

Find the gem at a tick.

The name is inferred.

Parameters
nTickThe tick in the song as written.
Returns
The index of the gem, or -1 when no gem lies at the tick.
Ghidra address:
NTSC-U/C: 0x0014c2f0
Ghidra address:
PAL: 0x0014dc90

◆ FindGem()

int CatchTrackData::FindGem ( int nTick) const

Find the first gem at or after a tick.

Parameters
nTickThe tick in the song as written.
Returns
The index of the gem, or -1 when every gem is earlier.
Ghidra address:
NTSC-U/C: 0x0014c3b8
Ghidra address:
PAL: 0x0014dd58

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