wavelength 1.0.0
Loading...
Searching...
No Matches
guideticker.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/gemcursor.h"
5#include "os/command.h"
6#include "os/ptr.h"
7
16public:
25 GuideTicker(CatchTrackState *pState, int nTicksPerBar);
26
34
41 void Start();
42
49 void Stop();
50
57 void Mute();
58
65 void Unmute();
66
74
81 void Update();
82
83private:
84 int mTicksPerBar;
85 int mLastBar;
86 int mBarsLeft;
87 int mMuted;
88 CatchTrackState *mState;
89 GemCursor mCursor;
90 Ptr<Command> mUpdateCmd;
91};
Per-bar state of one catch track during a song.
Definition catchtrackstate.h:17
Position at one gem of a catch track, walked in the order the song plays the gems.
Definition gemcursor.h:14
void Mute()
Mute the ticker until Unmute().
void Update()
Play the gems the song has reached and schedule the next gem.
void Start()
Schedule an update for the current tick.
void MuteForTwoBars()
Mute the ticker until the gems of two bars after the current bar have passed.
~GuideTicker()
Withdraw the scheduled gem.
GuideTicker(CatchTrackState *pState, int nTicksPerBar)
Construct a ticker at the first gem of the track.
void Stop()
Withdraw the scheduled update.
void Unmute()
Let the ticker play again.
Owner of one reference to an Attachment.
Definition ptr.h:16