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

Drawer of the bars and gems of one catch track ahead of the song. More...

#include <catchtrackdisplay.h>

Classes

class  UpdateDisplayCmd
 Command that draws the bars that come into view and schedules itself a bar later. More...

Public Member Functions

 CatchTrackDisplay (CatchTrackState *pState, const SectionBoundaries *pSections, int nTrack, int nIntroBars, int nNumBars, int nTicksPerBar, PlayMap *pPlayMap)
 Construct a display that has drawn nothing.
 ~CatchTrackDisplay ()
 Withdraw the scheduled update.
void Start ()
 Schedule the next update.
void Seek (int nTick)
 Move the display to a tick, drawing the bars that come into view from it.
void Stop ()
 Withdraw the scheduled update.
void Redraw (int nFromBar, int nClear)
 Draw again the bars from one bar up to the last bar drawn.
void RedrawRange (int nFromBar, int nToBar, int nClear)
 Draw again a range of bars, limited to the bars drawn so far.

Detailed Description

Drawer of the bars and gems of one catch track ahead of the song.

The RTTI includes the nested CatchTrackDisplay::UpdateDisplayCmd. The class is not polymorphic. CatchTrack has one. Once each bar the display draws the bars that come within 13000 ticks of the current tick, the updates of each track a tenth of a bar apart.

Constructor & Destructor Documentation

◆ CatchTrackDisplay()

CatchTrackDisplay::CatchTrackDisplay ( CatchTrackState * pState,
const SectionBoundaries * pSections,
int nTrack,
int nIntroBars,
int nNumBars,
int nTicksPerBar,
PlayMap * pPlayMap )

Construct a display that has drawn nothing.

Parameters
pStateThe state of the bars of the track.
pSectionsThe sections of the song, stored and not read here.
nTrackThe track.
nIntroBarsThe bars before the first section, stored and not read here.
nNumBarsThe length of the song in bars, stored and not read here.
nTicksPerBarThe song ticks in one bar.
pPlayMapThe play map of the song.
Ghidra address:
NTSC-U/C: 0x001579f0
Ghidra address:
PAL: 0x00159278

◆ ~CatchTrackDisplay()

CatchTrackDisplay::~CatchTrackDisplay ( )

Withdraw the scheduled update.

Ghidra address:
NTSC-U/C: 0x00157a78
Ghidra address:
PAL: 0x00159300

Member Function Documentation

◆ Start()

void CatchTrackDisplay::Start ( )

Schedule the next update.

Ghidra address:
NTSC-U/C: 0x00157b50
Ghidra address:
PAL: 0x001593d8

◆ Seek()

void CatchTrackDisplay::Seek ( int nTick)

Move the display to a tick, drawing the bars that come into view from it.

Parameters
nTickThe tick the song plays from.
Ghidra address:
NTSC-U/C: 0x00157b80
Ghidra address:
PAL: 0x00159408

◆ Stop()

void CatchTrackDisplay::Stop ( )

Withdraw the scheduled update.

Ghidra address:
NTSC-U/C: 0x00157bf0
Ghidra address:
PAL: 0x00159478

◆ Redraw()

void CatchTrackDisplay::Redraw ( int nFromBar,
int nClear )

Draw again the bars from one bar up to the last bar drawn.

Parameters
nFromBarThe first bar.
nClearNon-zero to remove the gems of the bars first.
Ghidra address:
NTSC-U/C: 0x00157c28
Ghidra address:
PAL: 0x001594b0

◆ RedrawRange()

void CatchTrackDisplay::RedrawRange ( int nFromBar,
int nToBar,
int nClear )

Draw again a range of bars, limited to the bars drawn so far.

Parameters
nFromBarThe first bar.
nToBarThe bar after the range.
nClearNon-zero to remove the gems of the bars first.
Ghidra address:
NTSC-U/C: 0x00157c48
Ghidra address:
PAL: 0x001594d0

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