wavelength 1.0.0
Loading...
Searching...
No Matches
gemcursor.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/playmap.h"
5#include "gs/muse.h"
6
14class GemCursor {
15public:
25 GemCursor(PlayMap *pPlayMap, CatchTrackData *pData, int nTick);
26
34
42 GemCursor(const GemCursor &other);
43
53
61 bool IsValid() const;
62
70 int GetTick() const;
71
79 int GetLane() const;
80
88 Muse *GetMuse() const;
89
96 void Advance();
97
108 void AdvanceToTick(int nTick, bool bSkipCurrent, int *pIsLast);
109
120 void AdvanceToLane(int nLane);
121
130 bool operator==(const GemCursor &other) const;
131
140
141private:
142 CatchTrackData *mData;
143 PlayMap *mPlayMap;
144 int mIndex;
145 int mOffset;
146};
The gems of one catch track, in the order of their ticks.
Definition catchtrackdata.h:14
bool IsValid() const
Report whether the cursor is at a gem.
GemCursor()
Construct a cursor past the last gem of no track.
bool operator==(const GemCursor &other) const
Report whether two cursors are at the same gem.
GemCursor & operator=(const GemCursor &other)
Copy another cursor.
int GetTick() const
Report the tick the song plays the gem at.
Muse * GetMuse() const
Report the music of the gem.
GemCursor Next()
Move to the next gem.
void AdvanceToTick(int nTick, bool bSkipCurrent, int *pIsLast)
Move to the first gem the song plays at or after a tick, following the loops of the play map.
int GetLane() const
Report the lane of the gem.
GemCursor(const GemCursor &other)
Copy another cursor.
void Advance()
Move to the next gem.
void AdvanceToLane(int nLane)
Move to the next gem in a lane.
GemCursor(PlayMap *pPlayMap, CatchTrackData *pData, int nTick)
Construct a cursor at the first gem at or after a tick.
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
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