wavelength 1.0.0
Loading...
Searching...
No Matches
voxtrackdisplay.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/playmap.h"
5#include "os/command.h"
6#include "os/ptr.h"
7
16public:
29 int nTrack, int nLeadInBars, int nTicksPerBar, PlayMap *pPlayMap, CatchTrackData *pGems);
30
38
45 void Start();
46
53 void Stop();
54
63 void BlankBars(int nStartBar, int nEndBar);
64
72 void Redraw(int nStartBar);
73
82 void Redraw(int nStartBar, int nEndBar);
83
84private:
91 void Update();
92
102 void DrawRange(int nStartBar, int nEndBar, bool bClear);
103
112 void DrawBars(int nStartBar, int nEndBar);
113
123 void DrawGems(int nStartBar, int nEndBar, bool bClear);
124
125 int mTrack;
126 int mTicksPerBar;
127 PlayMap *mPlayMap;
128 CatchTrackData *mGems;
129 Ptr<Command> mUpdateCommand;
130 int mEndBar;
131};
The gems of one catch track, in the order of their ticks.
Definition catchtrackdata.h:14
Map from the bars a song plays to the bars of the song as written, with the loops that repeat stretch...
Definition playmap.h:11
Owner of one reference to an Attachment.
Definition ptr.h:16
void Start()
Show the bars up to the lookahead, and keep them shown as the song plays.
void Stop()
Withdraw the scheduled command.
~VoxTrackDisplay()
Withdraw the scheduled command and release the display.
void BlankBars(int nStartBar, int nEndBar)
Show a range of bars empty.
void Redraw(int nStartBar, int nEndBar)
Show the bars and gems again over a range, cut at the last bar shown.
VoxTrackDisplay(int nTrack, int nLeadInBars, int nTicksPerBar, PlayMap *pPlayMap, CatchTrackData *pGems)
Construct a display.
void Redraw(int nStartBar)
Show the bars and gems again from a bar to the last bar shown.