|
resonance 1.0.1
|
Gameplay stage for a track whose gems are caught rather than played. More...
#include <catchingstg.h>


Public Member Functions | |
| CatchingSTG (TrackData *pTrackData) | |
| Build the neutraliser and the catcher, and set the phrase manager's export lead. | |
| virtual | ~CatchingSTG () |
| Stop the stage and release the catcher and the neutraliser. | |
| virtual void | Start () |
| Start the stage. | |
| virtual void | Stop () |
| Stop the stage. | |
| virtual void | ConnectInputs (MsgSource *pPrimary, MsgSource *pOptional, MsgSource *pSecondary) |
| Wire the stage's objects to the sources that drive it. | |
| virtual void | ConnectGamer (MsgSource *pSource) |
| Register the mixer with one source. | |
| virtual void | SetMixerOutput (MsgSink *pOutput) |
| Attach the mixer to the synthesiser and give it its output sink. | |
| virtual void | ConnectToTunnel (MsgSink *pSink) |
| Register one sink with every source the stage provides. | |
| virtual void | SetNetSink (MsgSink *pSink) |
| Install the sink the phrase manager reports phrase changes to. | |
| virtual int | HasNothingPending () |
| Report whether the stage has nothing outstanding. | |
| virtual void | GivePhrases (int nTick, Player *pPlayer) |
| Give every phrase of the track to one player. | |
| virtual int | CanGivePhrases () |
| Report that GivePhrases() acts on this stage. | |
| virtual void | CreatePowerbarMgr () |
| Rebuild the phrase manager's powerbar source. | |
| Public Member Functions inherited from ScoreTrackGraph | |
| ScoreTrackGraph (TrackData *pTrackData) | |
| Build the stage's quantiser, phrase manager, phrase player, mixer, and synthesiser. | |
| virtual | ~ScoreTrackGraph () |
| PhraseDatabase * | GetPhraseDatabase () |
| Report the phrase database of this stage's phrase manager. | |
| int | StartMF () |
| Run Start() and report zero. | |
| int | StopMF () |
| Run Stop() and report zero. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from ScoreTrackGraph | |
| static void | Delete (ScoreTrackGraph *pGraph) |
| Delete a stage, which may be null. | |
| Public Attributes inherited from ScoreTrackGraph | |
| TrackData * | mTrackData |
| The track description, the constructor's argument. | |
| Protected Attributes inherited from ScoreTrackGraph | |
| int | mTrack |
| PhraseMgr * | mPhraseMgr |
| PhrasePlayer * | mPhrasePlayer |
| Quantizer * | mQuantizer |
| MuseSynth * | mMuseSynth |
| int | mUnused |
| Mixer * | mMixer |
| Application * | mApplication |
| BarSequencer * | mSequencer |
Gameplay stage for a track whose gems are caught rather than played.
Its RTTI descriptor is at 0x00902230. It has ScoreTrackGraph as its only base at offset 0. Its table is at 0x007de4a0 and runs thirteen entries, the same as the base's. The class introduces no virtual. It is the one stage that overrides every slot, and the five defaults the other three inherit are all replaced here. The object is 0x34 bytes.
The constructor builds a PhraseNeutralizer and then one catcher, a SingleCatcher in game mode 1 and a MultiCatcher in every other mode. The catch window it hands the catcher is configuration code 0x39c, in milliseconds, converted to MIDI ticks through the song clock's tempo map.
| CatchingSTG::CatchingSTG | ( | TrackData * | pTrackData | ) |
Build the neutraliser and the catcher, and set the phrase manager's export lead.
The export lead is 120 ticks for each track index plus 120.
| pTrackData | The track description the base retains. |
|
virtual |
Stop the stage and release the catcher and the neutraliser.
Slot 1.
|
virtual |
Start the stage.
Slot 2. The routine starts the base and then schedules the catcher's commands through Catcher::Start().
Reimplemented from ScoreTrackGraph.
|
virtual |
Stop the stage.
Slot 3. The routine withdraws the catcher's commands through Catcher::Stop() and then stops the base.
Reimplemented from ScoreTrackGraph.
|
virtual |
Wire the stage's objects to the sources that drive it.
Slot 4.
| pPrimary | The source the stage registers five of its objects with. |
| pOptional | A further source, which receives the phrase manager and the catcher when it is supplied. |
| pSecondary | The source that receives the phrase manager and the catcher. |
Implements ScoreTrackGraph.
|
virtual |
Register the mixer with one source.
Slot 5. This class is the only one of the four that overrides the base's empty default.
| pSource | The source to register with. |
Reimplemented from ScoreTrackGraph.
|
virtual |
Attach the mixer to the synthesiser and give it its output sink.
Slot 6.
| pOutput | The sink the mixer sends to, stored in Mixer::mOutput. |
Implements ScoreTrackGraph.
|
virtual |
Register one sink with every source the stage provides.
Slot 7.
| pSink | The sink to register. |
Implements ScoreTrackGraph.
|
virtual |
Install the sink the phrase manager reports phrase changes to.
Slot 8.
| pSink | The sink to install, ignored when null. |
Implements ScoreTrackGraph.
|
virtual |
Report whether the stage has nothing outstanding.
Slot 9. The routine forwards to Catcher::IsPhraseRunEmpty().
Reimplemented from ScoreTrackGraph.
|
virtual |
Give every phrase of the track to one player.
Slot 10. The routine casts the catcher to SingleCatcher with dynamic_cast and forwards both arguments to SingleCatcher::ResetOwners(). The cast is unguarded, so a MultiCatcher yields a null receiver and the forwarded call dereferences it.
The routine also calls the game-mode accessor on mApplication and discards the answer, which is what remains of an assertion the release build compiled away.
| nTick | The song position, forwarded unchanged. |
| pPlayer | The player the phrases go to. |
Reimplemented from ScoreTrackGraph.
|
virtual |
Report that GivePhrases() acts on this stage.
Slot 11. Returns 1 where the base returns zero.
Reimplemented from ScoreTrackGraph.
|
virtual |
Rebuild the phrase manager's powerbar source.
Slot 12. The whole body is PhraseMgr::CreatePowerbarMgr().
Reimplemented from ScoreTrackGraph.