resonance 1.0.1
Loading...
Searching...
No Matches
catchingstg.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
5#include "game/catcher.h"
8#include "game/trackdata.h"
9
23public:
33 CatchingSTG(TrackData *pTrackData);
34
43 virtual ~CatchingSTG();
44
54 virtual void Start();
55
65 virtual void Stop();
66
79 virtual void ConnectInputs(MsgSource *pPrimary, MsgSource *pOptional, MsgSource *pSecondary);
80
90 virtual void ConnectGamer(MsgSource *pSource);
91
101 virtual void SetMixerOutput(MsgSink *pOutput);
102
112 virtual void ConnectToTunnel(MsgSink *pSink);
113
123 virtual void SetNetSink(MsgSink *pSink);
124
134 virtual int HasNothingPending();
135
151 virtual void GivePhrases(int nTick, Player *pPlayer);
152
162 virtual int CanGivePhrases();
163
172 virtual void CreatePowerbarMgr();
173
174private:
175 PhraseNeutralizer *mNeutralizer; // +0x2c
176 Catcher *mCatcher; // +0x30, a SingleCatcher in game mode 1
177};
Catcher that scores the gems one track presents.
Definition catcher.h:50
virtual void ConnectGamer(MsgSource *pSource)
Register the mixer with one source.
virtual void Stop()
Stop the stage.
virtual int CanGivePhrases()
Report that GivePhrases() acts on this stage.
virtual void SetNetSink(MsgSink *pSink)
Install the sink the phrase manager reports phrase changes to.
virtual void SetMixerOutput(MsgSink *pOutput)
Attach the mixer to the synthesiser and give it its output sink.
CatchingSTG(TrackData *pTrackData)
Build the neutraliser and the catcher, and set the phrase manager's export lead.
virtual void CreatePowerbarMgr()
Rebuild the phrase manager's powerbar source.
virtual int HasNothingPending()
Report whether the stage has nothing outstanding.
virtual void Start()
Start the stage.
virtual void ConnectInputs(MsgSource *pPrimary, MsgSource *pOptional, MsgSource *pSecondary)
Wire the stage's objects to the sources that drive it.
virtual void GivePhrases(int nTick, Player *pPlayer)
Give every phrase of the track to one player.
virtual void ConnectToTunnel(MsgSink *pSink)
Register one sink with every source the stage provides.
virtual ~CatchingSTG()
Stop the stage and release the catcher and the neutraliser.
Receiver of engine messages.
Definition msgsink.h:37
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
Neutraliser of the phrases a catching track has already captured.
Definition phraseneutralizer.h:23
One participant in a session, local or remote.
Definition player.h:39
ScoreTrackGraph(TrackData *pTrackData)
Build the stage's quantiser, phrase manager, phrase player, mixer, and synthesiser.
Converted events of one track of a level.
Definition trackdata.h:52