resonance 1.0.1
Loading...
Searching...
No Matches
PhraseMgr Class Reference

Owner of the gem phrases on one track, and the seam between the network and the gems. More...

#include <phrasemgr.h>

Inheritance diagram for PhraseMgr:
Collaboration diagram for PhraseMgr:

Public Member Functions

 PhraseMgr (Sch::TickClock *pClock, int nBarTicks, PlayMap *pMap, int nConfig, const TrackData *pTrackData)
 Construct the manager of one track and its phrase database.
virtual ~PhraseMgr ()
 Withdraw both commands through WithdrawCommands(), then delete both owned objects.
void CreatePowerbarMgr ()
 Replace the powerbar source with the one the play mode and the track kind call for.
int GetPowerbar (int nBar)
void PostPhraseMsg (int nPhrase)
 Post a PhraseMsg for one phrase.
void PostGemMsg (Message *pMsg)
 Add the gem a GemPacket for this track carries to the phrase at its step and every step chained to it, and post the gem for the first window bar mapped to each step.
void PostGemMsgSecond (int nBar)
 Post each gem of the phrase at a bar as a GemMsg, in the phrase owner's name.
void PostGemMsgThird (int nBar, int bGhost)
 Post each gem the track description lists for a bar as a GemMsg, when the bar is enabled.
void PostDurGemMsg (int nBar)
 Post the gems of the phrase at a bar as DurGemMsg objects, with a GemMsg at the head of each run.
void RefreshBar (int nBar, int bClear)
 Post one bar again when it lies in the window from mWindowStart up to mWindowEnd.
void PostBarStatusMsg (int nBar)
 Post a BarStatusMsg for one bar with every field set.
void OnCommand (int nBar)
 Play one bar through mPhrasePlayer and schedule the file-local Cmd for the next bar.
void OnExportCommand (int nBar)
 Move the window to start before a bar, post the bar entering it, and schedule the file-local ExportCmd for the next bar, mExportLead ticks after that bar starts.
Phrase * GetPhraseAt (int nBar)
long long * GetStepValue (int nBar)
unsigned char GetPhraseByte (int nBar)
void SetPhraseByte (int nBar, char cValue)
 Set the byte at +0x28 of the phrase at a bar and at every bar slot 7 of mMap chains it to for this track.
void ResetOwners (Player *pPlayer)
 Return every phrase to one owner and clear and post every bar of the window again.
void RefreshAllBars ()
 Widen the window to the first mConfig + 1 bars and post each of them again.
int TickToBar (int nTick)
int BarToTick (int nBar)
int PhrasesMatch (int nFirstBar, int nSecondBar)
 Report whether the phrases at two bars carry the same gems.
void ReplayBar (int nBar, int nOffset)
 Have mPhrasePlayer play a bar again from an offset, at the song position it has reached.
void InstallPhrase (Phrase *pPhrase, int nBar, int bRefresh)
 Install a phrase at a bar, report the owner change, and optionally post the bar again.
void ClearPhrase (int nBar, int bAll)
 Clear the phrase at a bar and at every bar slot 7 of mMap chains it to, and post the affected window bars again.
void OnCaughtPhrasePacket (Message *pMsg)
 Give the phrase of a CaughtPhrasePacket for this track to the player the packet identifies, or clear it, and post the chained window bars again.
void StartCommands ()
 Schedule the file-local Cmd for bar 0 at position 0 and the file-local ExportCmd for bar 1, mExportLead ticks after that bar starts.
void AddGem (int nGem, int nTrans, int nBar, int nTick, Player *pOwner, int bPost)
 Add a gem to the phrase at a bar, creating the phrase for an owner when the bar has none.
void WithdrawCommands ()
 Withdraw both scheduled commands.
void OnPhrasePacket (PhrasePacket *pPacket)
 Install the phrase a PhrasePacket for this track carries at its step, or clear the step when the packet has none, and post the window bar mapped to that step again.
void OnInvalidateTrack (InvalidateTrackMsg *pMsg)
 Clear and post again every window bar whose mapped bar lies in the range an InvalidateTrackMsg for this track names.
void OnRefreshNet (Message *pMsg)
 Send mNetSink a CaughtPhrasePacket for the step of each bar a RefreshNetMsg for this track names.
Player * GetOwner (int nBar) const
 Report the player who owns the phrase at a bar.
void SetPhraseOwner (Player *pPlayer, int nBar)
 Give the phrase at a bar a new owner.
Public Member Functions inherited from MsgSink
void * operator new (size_t nSize)
 Allocate a sink from the tagged heap under the tag "MsgSink".
void operator delete (void *pBlock)
 Release a sink to the tagged heap.
virtual ~MsgSink ()
virtual void Dispatch (Message *pMsg)
 Accept a message.
Public Member Functions inherited from MsgSource
virtual ~MsgSource ()
virtual void AddSink (MsgSink *pSink)
 Register a sink, ignoring a sink that is already registered.
virtual void RemoveSink (MsgSink *pSink)
 Unregister the first occurrence of a sink.
void Send (Message *pMsg) const
 Deliver a message to every registered sink, in registration order.
void ClearSinks ()
 Unregister every sink.

Public Attributes

PhrasePlayer * mPhrasePlayer
 Player of this track's phrases.
MsgSink * mNetSink
 Sink the phrase changes go to as packets, installed by the stage classes' slot 8.
Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Protected Member Functions

virtual void DispatchPriv (Message *pMsg)
 Act on a message.

Friends

class Catcher
class CatchingSTG
class NotePitcher
class PhraseEraser
class PhrasePlayer
class ScoreTrackGraph
class Scratcher
class Voxer

Detailed Description

Owner of the gem phrases on one track, and the seam between the network and the gems.

Its RTTI descriptor is at 0x00901fd0. It has MsgSink at offset 0 and MsgSource at offset 4, and it is named after GsPhraseMgr.cpp, the translation unit its two file-local classes record. Those two are Cmd at 0x008f0960 and ExportCmd at 0x009021f0, both deriving from Sch::Command. Its primary table is at 0x007e28d0 and its MsgSource table at 0x007e28a8, and each runs four entries. ScoreTrackGraph's tagged allocation measures the object at 0x60 bytes. The signature of Catcher::Catcher() also records the class name, and every stage passes the manager it retains to the catcher it builds.

Every member below posts one message through its own MsgSource half, which is what the titles describe. PostPhraseMsg() looks the phrase up through PhraseDatabase::GetPhraseAt() on mDatabase, and when that lookup reports a phrase it builds a PhraseMsg with the argument at +0x04, mTrack at +0x08, and the phrase at +0x0c, and delivers it through MsgSource::Send().

DispatchPriv() dispatches six identities, three of them packets rather than messages. A PhrasePacket, a CaughtPhrasePacket, and a GemPacket arrive from the network, and an InvalidateTrackMsg, a RefreshNetMsg, and a GameBeginMsg arrive locally. The PhrasePacket and the InvalidateTrackMsg paths both loop, clearing and posting bars through RefreshBar(), and the PhrasePacket path is guarded on the packet's +0x14 matching mTrack.

The constructor fixes the member map from +0x18 to the end. The MsgSource subobject occupies +0x04 through +0x17, so the region at +0x10 the destructor tears down is that subobject's vector rather than a member of this class. The destructor deletes mDatabase and mPowerbarMgr through slot 1 of each table, which is the destructor slot.

Constructor & Destructor Documentation

◆ PhraseMgr()

PhraseMgr::PhraseMgr ( Sch::TickClock * pClock,
int nBarTicks,
PlayMap * pMap,
int nConfig,
const TrackData * pTrackData )

Construct the manager of one track and its phrase database.

The fifth argument arrives in t1. ScoreTrackGraph passes the song clock, 1920, the play map Globals reports, a configuration value, and its track description. The constructor ends by creating the powerbar source through CreatePowerbarMgr().

Parameters
pClockThe song clock.
nBarTicksThe length of one bar in MIDI ticks.
pMapThe play map the phrase database is sized from.
nConfigThe configuration value ScoreTrackGraph reads from the query at 0x00509110 with the identifier 0x2be.
pTrackDataThe track description.
Ghidra address:
NTSC-U/C: 0x001ba0d0
Ghidra address:
PAL: 0x001bfea8

◆ ~PhraseMgr()

virtual PhraseMgr::~PhraseMgr ( )
virtual

Withdraw both commands through WithdrawCommands(), then delete both owned objects.

Ghidra address:
NTSC-U/C: 0x001ba2b8
Ghidra address:
PAL: 0x001c0090

Member Function Documentation

◆ CreatePowerbarMgr()

void PhraseMgr::CreatePowerbarMgr ( )

Replace the powerbar source with the one the play mode and the track kind call for.

kPlayModeGame on a riff or catch track, with configuration flag 0x3a1 clear, gets a SoloPowerbarMgr in kGameModeSolo and a MultiPowerbarMgr in any other game mode. Every other combination gets a JamPowerbarMgr. The constructor and CatchingSTG::CreatePowerbarMgr() call it.

Ghidra address:
NTSC-U/C: 0x001ba3d8
Ghidra address:
PAL: 0x001c01b0

◆ GetPowerbar()

int PhraseMgr::GetPowerbar ( int nBar)
Parameters
nBarThe bar, mapped through slot 5 of mMap.
Returns
PowerbarMgr::GetPowerbar() on mPowerbarMgr for the mapped bar.
Ghidra address:
NTSC-U/C: 0x001c01e8
Ghidra address:
PAL: 0x001c6018

◆ PostPhraseMsg()

void PhraseMgr::PostPhraseMsg ( int nPhrase)

Post a PhraseMsg for one phrase.

Performs no work when the lookup at 0x001b8e50 reports nothing.

Parameters
nPhraseThe value the message's +0x04 receives.
Ghidra address:
NTSC-U/C: 0x001bc468
Ghidra address:
PAL: 0x001c2240

◆ PostGemMsg()

void PhraseMgr::PostGemMsg ( Message * pMsg)

Add the gem a GemPacket for this track carries to the phrase at its step and every step chained to it, and post the gem for the first window bar mapped to each step.

A step with no phrase is first given to the packet's player, and TrackData::SetOwner() receives NullPlayer::sInstance as the previous owner. The GemPacket path of DispatchPriv() is the one recovered caller.

Parameters
pMsgThe packet the gem is read out of.
Ghidra address:
NTSC-U/C: 0x001ba6d0
Ghidra address:
PAL: 0x001c04a8

◆ PostGemMsgSecond()

void PhraseMgr::PostGemMsgSecond ( int nBar)

Post each gem of the phrase at a bar as a GemMsg, in the phrase owner's name.

RefreshBar() calls it for a riff track.

Parameters
nBarThe bar.
Ghidra address:
NTSC-U/C: 0x001bc0f0
Ghidra address:
PAL: 0x001c1ec8

◆ PostGemMsgThird()

void PhraseMgr::PostGemMsgThird ( int nBar,
int bGhost )

Post each gem the track description lists for a bar as a GemMsg, when the bar is enabled.

A ghost gem is posted in NullPlayer::sInstance's name, and any other in the name of the phrase owner at the bar. RefreshBar() posts ghosts on a riff track outside jukebox mode and plain gems on a catch track.

Parameters
nBarThe bar.
bGhostNon-zero to post ghost gems.
Ghidra address:
NTSC-U/C: 0x001bc290
Ghidra address:
PAL: 0x001c2068

◆ PostDurGemMsg()

void PhraseMgr::PostDurGemMsg ( int nBar)

Post the gems of the phrase at a bar as DurGemMsg objects, with a GemMsg at the head of each run.

A gem is joined to the next when the next lies within 480 ticks and its transposition has the opposite sign. A gem with a transposition of 0 posts no DurGemMsg. RefreshBar() calls it for a scratch track.

Parameters
nBarThe bar.
Ghidra address:
NTSC-U/C: 0x001bbcf0
Ghidra address:
PAL: 0x001c1ac8

◆ RefreshBar()

void PhraseMgr::RefreshBar ( int nBar,
int bClear )

Post one bar again when it lies in the window from mWindowStart up to mWindowEnd.

A ClearGemsMsg goes first when bClear is non-zero. The bar's status then goes through PostBarStatusMsg(), and the bar's gems through the routine mTrackKind selects from the jump table at 0x007e2670. An axe track posts a PhraseMsg, a riff track posts ghosts and gems, a scratch track posts DurGemMsg runs, a vocal track posts a PhraseMsg through a byte-identical copy of PostPhraseMsg() at 0x001bc4f8, and a catch track posts gems.

Parameters
nBarThe bar.
bClearNon-zero to clear the bar's gems first.
Ghidra address:
NTSC-U/C: 0x001bbb90
Ghidra address:
PAL: 0x001c1968

◆ PostBarStatusMsg()

void PhraseMgr::PostBarStatusMsg ( int nBar)

Post a BarStatusMsg for one bar with every field set.

The powerup is -1 for a bar the track description does not enable, and the manager's mRefreshing goes out in the message's +0x14. RefreshBar() is the recovered caller.

Parameters
nBarThe bar.
Ghidra address:
NTSC-U/C: 0x001bb9f8
Ghidra address:
PAL: 0x001c17d0

◆ OnCommand()

void PhraseMgr::OnCommand ( int nBar)

Play one bar through mPhrasePlayer and schedule the file-local Cmd for the next bar.

The file-local Cmd runs it.

Parameters
nBarThe bar to play.
Ghidra address:
NTSC-U/C: 0x001bb6b8
Ghidra address:
PAL: 0x001c1490

◆ OnExportCommand()

void PhraseMgr::OnExportCommand ( int nBar)

Move the window to start before a bar, post the bar entering it, and schedule the file-local ExportCmd for the next bar, mExportLead ticks after that bar starts.

The file-local ExportCmd runs it.

Parameters
nBarThe bar.
Ghidra address:
NTSC-U/C: 0x001bb8a0
Ghidra address:
PAL: 0x001c1678

◆ GetPhraseAt()

Phrase * PhraseMgr::GetPhraseAt ( int nBar)
Parameters
nBarThe bar. PhrasePlayer passes the bar it plays.
Returns
PhraseDatabase::GetPhraseAt() on mDatabase.
Ghidra address:
NTSC-U/C: 0x001c01c8
Ghidra address:
PAL: 0x001c5ff8

◆ GetStepValue()

long long * PhraseMgr::GetStepValue ( int nBar)
Parameters
nBarThe bar. PhrasePlayer passes the bar it plays.
Returns
PhraseDatabase::GetStepValue() on mDatabase.
Ghidra address:
NTSC-U/C: 0x001c0248
Ghidra address:
PAL: 0x001c6078

◆ GetPhraseByte()

unsigned char PhraseMgr::GetPhraseByte ( int nBar)
Parameters
nBarThe bar, mapped through slot 5 of mMap.
Returns
The byte at +0x28 of the phrase at the mapped bar.
Ghidra address:
NTSC-U/C: 0x001c0338
Ghidra address:
PAL: 0x001c6168

◆ SetPhraseByte()

void PhraseMgr::SetPhraseByte ( int nBar,
char cValue )

Set the byte at +0x28 of the phrase at a bar and at every bar slot 7 of mMap chains it to for this track.

Parameters
nBarThe bar, mapped through slot 5 of mMap.
cValueThe byte.
Ghidra address:
NTSC-U/C: 0x001c0298
Ghidra address:
PAL: 0x001c60c8

◆ ResetOwners()

void PhraseMgr::ResetOwners ( Player * pPlayer)

Return every phrase to one owner and clear and post every bar of the window again.

Parameters
pPlayerThe owner.
Ghidra address:
NTSC-U/C: 0x001c0380
Ghidra address:
PAL: 0x001c61b0

◆ RefreshAllBars()

void PhraseMgr::RefreshAllBars ( )

Widen the window to the first mConfig + 1 bars and post each of them again.

mRefreshing is set while the bars are posted.

Ghidra address:
NTSC-U/C: 0x001c03e0
Ghidra address:
PAL: 0x001c6210

◆ TickToBar()

int PhraseMgr::TickToBar ( int nTick)
Parameters
nTickThe song position, in MIDI ticks.
Returns
The bar the position falls in. The start of that bar is computed and discarded.
Ghidra address:
NTSC-U/C: 0x001bf6c0
Ghidra address:
PAL: 0x001c54e0

◆ BarToTick()

int PhraseMgr::BarToTick ( int nBar)
Parameters
nBarThe bar.
Returns
The song position the bar starts at.
Ghidra address:
NTSC-U/C: 0x001bf738
Ghidra address:
PAL: 0x001c5558

◆ PhrasesMatch()

int PhraseMgr::PhrasesMatch ( int nFirstBar,
int nSecondBar )

Report whether the phrases at two bars carry the same gems.

Two equal bars match at once. Otherwise both bars are mapped through slot 5 of mMap, two missing phrases match, one missing phrase does not, and two phrases match when their gem lists are equal element by element. NotePitcher::PostPhraseCapturedMsg() is the recovered caller.

Parameters
nFirstBarThe first bar.
nSecondBarThe second bar.
Returns
Non-zero when the phrases match.
Ghidra address:
NTSC-U/C: 0x001bb558
Ghidra address:
PAL: 0x001c1330

◆ ReplayBar()

void PhraseMgr::ReplayBar ( int nBar,
int nOffset )

Have mPhrasePlayer play a bar again from an offset, at the song position it has reached.

Catcher::OnAutoCatch() and NotePitcher::PostPhraseCapturedMsg() are the recovered callers.

Parameters
nBarThe bar.
nOffsetThe offset within the bar, in MIDI ticks.
Ghidra address:
NTSC-U/C: 0x001bb798
Ghidra address:
PAL: 0x001c1570

◆ InstallPhrase()

void PhraseMgr::InstallPhrase ( Phrase * pPhrase,
int nBar,
int bRefresh )

Install a phrase at a bar, report the owner change, and optionally post the bar again.

It first marks the world's statistics through GrooveWorld::MarkStatsFlag(). A CaughtPhrasePacket for the step goes to mNetSink when one is installed. AxePhraseMaker and Voxer are the recovered callers.

Parameters
pPhraseThe phrase.
nBarThe bar, mapped through slot 5 of mMap.
bRefreshNon-zero to post the bar through RefreshBar() afterwards.
Ghidra address:
NTSC-U/C: 0x001bb1a0
Ghidra address:
PAL: 0x001c0f78

◆ ClearPhrase()

void PhraseMgr::ClearPhrase ( int nBar,
int bAll )

Clear the phrase at a bar and at every bar slot 7 of mMap chains it to, and post the affected window bars again.

It first marks the world's statistics through GrooveWorld::MarkStatsFlag(). A CaughtPhrasePacket naming NullPlayer::sInstance goes to mNetSink for each cleared step when one is installed. The chain is followed only in kPlayModeGame with bAll set. AxePhraseMaker, NotePitcher, and PhraseNeutralizer are the recovered callers.

Parameters
nBarThe bar, mapped through slot 5 of mMap.
bAllNon-zero to clear every chained bar as well.
Ghidra address:
NTSC-U/C: 0x001bb328
Ghidra address:
PAL: 0x001c1100

◆ OnCaughtPhrasePacket()

void PhraseMgr::OnCaughtPhrasePacket ( Message * pMsg)

Give the phrase of a CaughtPhrasePacket for this track to the player the packet identifies, or clear it, and post the chained window bars again.

The phrase is cleared rather than given when the packet's player is a stand-in, and the first window bar mapped to each step is posted again. DispatchPriv() is the recovered caller.

Parameters
pMsgThe packet.
Ghidra address:
NTSC-U/C: 0x001ba540
Ghidra address:
PAL: 0x001c0318

◆ StartCommands()

void PhraseMgr::StartCommands ( )

Schedule the file-local Cmd for bar 0 at position 0 and the file-local ExportCmd for bar 1, mExportLead ticks after that bar starts.

ScoreTrackGraph's slot 2 is the recovered caller.

Ghidra address:
NTSC-U/C: 0x001bc588
Ghidra address:
PAL: 0x001c2360

◆ AddGem()

void PhraseMgr::AddGem ( int nGem,
int nTrans,
int nBar,
int nTick,
Player * pOwner,
int bPost )

Add a gem to the phrase at a bar, creating the phrase for an owner when the bar has none.

It first marks the world's statistics through GrooveWorld::MarkStatsFlag(), gives a bar without a phrase to pOwner through SetPhraseOwner(), and adds the gem through Phrase::AddGem(). A GemPacket goes to mNetSink when one is installed, with its transposition left unset. When bPost is non-zero, each window bar slot 6 of mMap reports for the step gets a ClearGemMsg for the gem the addition replaced, if any, and then a GemMsg for the new gem. On a riff track a replaced gem also reposts, as a ghost, the first other gem the track description lists at the same position. NotePitcher and Scratcher are the recovered callers.

Parameters
nGemThe gem.
nTransThe transposition.
nBarThe bar, mapped through slot 5 of mMap.
nTickThe song position within the phrase, in MIDI ticks.
pOwnerThe player a new phrase is given to.
bPostNon-zero to post the gem to the window bars. Both NotePitcher calls pass a member.
Ghidra address:
NTSC-U/C: 0x001baa98
Ghidra address:
PAL: 0x001c0870

◆ WithdrawCommands()

void PhraseMgr::WithdrawCommands ( )

Withdraw both scheduled commands.

The destructor calls it first.

Ghidra address:
NTSC-U/C: 0x001c0450
Ghidra address:
PAL: 0x001c6280

◆ OnPhrasePacket()

void PhraseMgr::OnPhrasePacket ( PhrasePacket * pPacket)

Install the phrase a PhrasePacket for this track carries at its step, or clear the step when the packet has none, and post the window bar mapped to that step again.

When the owner changes, TrackData::SetOwner() receives the owner PhraseDatabase::GetOwner() reported before the change, which is what the binary passes. DispatchPriv() expands the body inline, and the out-of-line copy has no caller.

Parameters
pPacketThe packet.
Ghidra address:
NTSC-U/C: 0x001c0010
Ghidra address:
PAL: 0x001c5e40

◆ OnInvalidateTrack()

void PhraseMgr::OnInvalidateTrack ( InvalidateTrackMsg * pMsg)

Clear and post again every window bar whose mapped bar lies in the range an InvalidateTrackMsg for this track names.

DispatchPriv() expands the body inline, and the out-of-line copy has no caller.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001c0110
Ghidra address:
PAL: 0x001c5f40

◆ OnRefreshNet()

void PhraseMgr::OnRefreshNet ( Message * pMsg)

Send mNetSink a CaughtPhrasePacket for the step of each bar a RefreshNetMsg for this track names.

Each packet names the owner of the phrase at its step, or NullPlayer::sInstance. Nothing is sent while no sink is installed. The RefreshNetMsg path of DispatchPriv() is the one recovered caller.

Parameters
pMsgThe RefreshNetMsg.
Ghidra address:
NTSC-U/C: 0x001ba928
Ghidra address:
PAL: 0x001c0700

◆ GetOwner()

Player * PhraseMgr::GetOwner ( int nBar) const

Report the player who owns the phrase at a bar.

Parameters
nBarThe bar, passed to PhraseDatabase::GetPhraseAt().
Returns
The owner of the phrase the database reports, or NullPlayer::sInstance when there is none.
Ghidra address:
NTSC-U/C: 0x001c0268
Ghidra address:
PAL: 0x001c6098

◆ SetPhraseOwner()

void PhraseMgr::SetPhraseOwner ( Player * pPlayer,
int nBar )

Give the phrase at a bar a new owner.

The bar is mapped through slot 5 of mMap. For that step, and in kPlayModeGame for every step slot 7 chains it to, the owner is exchanged in mDatabase, TrackData::SetOwner() receives the previous owner when it changed, a CaughtPhrasePacket goes to mNetSink when one is installed, and the window bars slot 6 reports for the step are posted again. The Catcher subclasses' slot 9, Catcher::SetPhraseOwners(), and NotePitcher::PostPhraseCapturedMsg() are the recovered callers.

Parameters
pPlayerThe new owner.
nBarThe bar.
Ghidra address:
NTSC-U/C: 0x001bafa8
Ghidra address:
PAL: 0x001c0d80

◆ DispatchPriv()

virtual void PhraseMgr::DispatchPriv ( Message * pMsg)
protectedvirtual

Act on a message.

Primary table slot 3. A PhrasePacket runs OnPhrasePacket(), a CaughtPhrasePacket runs OnCaughtPhrasePacket(), a GemPacket runs PostGemMsg(), an InvalidateTrackMsg runs OnInvalidateTrack(), a RefreshNetMsg runs OnRefreshNet(), and a GameBeginMsg runs RefreshAllBars(). The two On routines and RefreshAllBars() are expanded inline.

Parameters
pMsgThe message or packet.
Ghidra address:
NTSC-U/C: 0x001bc718
Ghidra address:
PAL: 0x001c24f0

Implements MsgSink.

◆ Catcher

friend class Catcher
friend

◆ CatchingSTG

friend class CatchingSTG
friend

◆ NotePitcher

friend class NotePitcher
friend

◆ PhraseEraser

friend class PhraseEraser
friend

◆ PhrasePlayer

friend class PhrasePlayer
friend

◆ ScoreTrackGraph

friend class ScoreTrackGraph
friend

◆ Scratcher

friend class Scratcher
friend

◆ Voxer

friend class Voxer
friend

Member Data Documentation

◆ mPhrasePlayer

PhrasePlayer* PhraseMgr::mPhrasePlayer

Player of this track's phrases.

The constructor clears it and ScoreTrackGraph's constructor stores its own PhrasePlayer here at 0x001cefec from outside the class. OnCommand() plays each bar through it.

+0x18

◆ mNetSink

MsgSink* PhraseMgr::mNetSink

Sink the phrase changes go to as packets, installed by the stage classes' slot 8.

The constructor clears it and every one of the four stages writes it from outside the class, which is what records the member public. InstallPhrase(), ClearPhrase(), AddGem(), and SetPhraseOwner() send it GemPacket and CaughtPhrasePacket objects through MsgSink::Dispatch() when it is set.

+0x1c


The documentation for this class was generated from the following file: