resonance 1.0.1
Loading...
Searching...
No Matches
singlecatcher.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/catcher.h"
4#include "game/quantizer.h"
5#include "game/trackdata.h"
6#include "gs/phrasemgr.h"
7#include "mid/tick.h"
8#include "sch/tickclock.h"
9
19class SingleCatcher : public Catcher {
20public:
33 Quantizer *pQuantizer,
34 const TrackData *pTrackData,
35 Sch::TickClock *pClock,
36 Sch::Tick tick);
37
42 virtual ~SingleCatcher();
43
59 virtual void CapturePhrase(int nBar, int nRun, int nAutoCatch);
60
72 virtual void ReportCaughtPowerbar(int nBar);
73
86 void ResetOwners(int nTick, Player *pPlayer);
87
88private:
89 int mLastStep; // +0x80, the play map's last step, read once by the constructor
90};
Catcher(PhraseMgr *pPhraseMgr, Quantizer *pQuantizer, const TrackData *pTrackData, Sch::TickClock *pClock, int nSeekerBarCount, Sch::Tick catchWindow)
Owner of the gem phrases on one track, and the seam between the network and the gems.
Definition phrasemgr.h:51
One participant in a session, local or remote.
Definition player.h:39
Holder of the track description the beat-quantising paths consult.
Definition quantizer.h:14
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
SingleCatcher(PhraseMgr *pPhraseMgr, Quantizer *pQuantizer, const TrackData *pTrackData, Sch::TickClock *pClock, Sch::Tick tick)
Construct the base with two-bar seeker ranges and record the last step of the play map.
virtual ~SingleCatcher()
virtual void ReportCaughtPowerbar(int nBar)
Report the caught power bar to this catcher's player.
void ResetOwners(int nTick, Player *pPlayer)
Give every phrase of the track to one player.
virtual void CapturePhrase(int nBar, int nRun, int nAutoCatch)
Capture the phrase a caught run of bars completes.
Converted events of one track of a level.
Definition trackdata.h:52