|
wavelength 1.0.0
|
Position at one gem of a catch track, walked in the order the song plays the gems. More...
#include <gemcursor.h>
Public Member Functions | |
| GemCursor (PlayMap *pPlayMap, CatchTrackData *pData, int nTick) | |
| Construct a cursor at the first gem at or after a tick. | |
| GemCursor () | |
| Construct a cursor past the last gem of no track. | |
| GemCursor (const GemCursor &other) | |
| Copy another cursor. | |
| GemCursor & | operator= (const GemCursor &other) |
| Copy another cursor. | |
| bool | IsValid () const |
| Report whether the cursor is at a gem. | |
| int | GetTick () const |
| Report the tick the song plays the gem at. | |
| int | GetLane () const |
| Report the lane of the gem. | |
| Muse * | GetMuse () const |
| Report the music of the gem. | |
| void | Advance () |
| 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. | |
| void | AdvanceToLane (int nLane) |
| Move to the next gem in a lane. | |
| bool | operator== (const GemCursor &other) const |
| Report whether two cursors are at the same gem. | |
| GemCursor | Next () |
| Move to the next gem. | |
Position at one gem of a catch track, walked in the order the song plays the gems.
The class is not polymorphic and has no RTTI. The name is inferred. A cursor whose index is -1 is past the last gem. The play map repeats stretches of the song, and mOffset maps the tick of the gem in the song as written to the tick the song plays it at.
| GemCursor::GemCursor | ( | PlayMap * | pPlayMap, |
| CatchTrackData * | pData, | ||
| int | nTick ) |
Construct a cursor at the first gem at or after a tick.
| pPlayMap | The play map of the song. |
| pData | The gems. |
| nTick | The tick the song plays at. |
| GemCursor::GemCursor | ( | ) |
Construct a cursor past the last gem of no track.
| GemCursor::GemCursor | ( | const GemCursor & | other | ) |
Copy another cursor.
| other | The cursor. |
Copy another cursor.
| other | The cursor. |
| bool GemCursor::IsValid | ( | ) | const |
Report whether the cursor is at a gem.
| int GemCursor::GetTick | ( | ) | const |
Report the tick the song plays the gem at.
| int GemCursor::GetLane | ( | ) | const |
Report the lane of the gem.
| Muse * GemCursor::GetMuse | ( | ) | const |
Report the music of the gem.
| void GemCursor::Advance | ( | ) |
Move to the next gem.
| void GemCursor::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.
| nTick | The tick the song plays at. |
| bSkipCurrent | Whether to step past the current gem first. |
| pIsLast | Receives whether the search arrived at the last loop of the play map. |
| void GemCursor::AdvanceToLane | ( | int | nLane | ) |
Move to the next gem in a lane.
In a loop that repeats without end, the cursor moves past the last gem once it returns to the gem it started from.
| nLane | The lane. |
| bool GemCursor::operator== | ( | const GemCursor & | other | ) | const |
Report whether two cursors are at the same gem.
| other | The other cursor. |
| GemCursor GemCursor::Next | ( | ) |
Move to the next gem.