28 static void operator delete(
void *pBlock) {
49 const float *pfMsPerTick,
128 return mActiveButton != kNoButton;
152 static constexpr int kNoButton = -1;
168 void ReleaseScratch();
179 void StartScratch(
int nButton,
float fX,
float fY);
196 void UpdateScratchers();
205 void PlayReleaseSound(
int nButton);
Input event of a button press that names only the player.
Definition btnevent.h:15
FreestyleTrack(const SectionBoundaries *pSections, PlayMap *pPlayMap, const float *pfMsPerTick, int nIndex, int nNumBars, int nTicksPerBar)
Construct a track.
void HandleInput(Player *pPlayer, const PlayNoteEvent &event) override
Send a note the track's player played, and start or stop the scoring of the time it sounds.
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
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
One participant in a song: the track the participant plays, the score, and the streak.
Definition player.h:19
Owner of one reference to an Attachment.
Definition ptr.h:16
The scratchers of a scratch track, one set of three for each span of the song.
Definition scratchtrackdata.h:15
static constexpr int kSetSize
The number of scratchers in a set.
Definition scratchtrackdata.h:18
void Stop() override
Withdraw the scheduled commands and stop every scratcher.
~ScratchTrack() override
Stop the track and release it.
void SetPlayer(Player *pPlayer) override
End the active scratch, then assign the player.
void Start() override
Select the scratchers of the set at the song position.
void HandleInput(Player *pPlayer, const StickEvent< 2 > &event) override
Move the active scratcher with a stick position of the track's player.
void HandleInput(Player *pPlayer, const PlayNoteEvent &event) override
Start or end a scratch of the track's player.
bool IsActive() override
Report whether a scratch is active.
Definition scratchtrack.h:127
static constexpr int kNumScratchers
The number of scratchers in a set, one for each gem button.
Definition scratchtrack.h:21
void Refresh() override
Withdraw the scheduled update and select the scratchers of the set at the song position.
ScratchTrack(ScratchTrackData *pData, const SectionBoundaries *pSections, PlayMap *pPlayMap, const float *pfMsPerTick, int nIndex, int nIntroBars, int nNumBars, int nTicksPerBar)
Construct a track and its release sounds.
void HandleInput(Player *pPlayer, const BtnEvent< 10 > &event) override
Release the scratch of the track's player and play the release sound.
Player of the three recorded pieces one scratch button plays.
Definition scratcher.h:20
Ascending list of the measures at which the sections of a song end.
Definition sectionboundaries.h:12
Input event of an analog stick position.
Definition stickevent.h:15
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.