409 void AddGem(
int nGem,
int nTrans,
int nBar,
int nTick,
Player *pOwner,
int bPost);
527 void RefreshWindowBarOfStep(
int nStep);
Event the game passes between a MsgSource and a MsgSink.
Definition invalidatetrackmsg.h:22
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
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
Store of one phrase per step of a play map, and one jam effect mask per step.
Definition phrasedatabase.h:29
friend class CatchingSTG
Definition phrasemgr.h:58
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...
long long * GetStepValue(int nBar)
void PostBarStatusMsg(int nBar)
Post a BarStatusMsg for one bar with every field set.
void ReplayBar(int nBar, int nOffset)
Have mPhrasePlayer play a bar again from an offset, at the song position it has reached.
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 PostGemMsgSecond(int nBar)
Post each gem of the phrase at a bar as a GemMsg, in the phrase owner's name.
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 ...
void WithdrawCommands()
Withdraw both scheduled commands.
PhrasePlayer * mPhrasePlayer
Player of this track's phrases.
Definition phrasemgr.h:495
void OnExportCommand(int nBar)
Move the window to start before a bar, post the bar entering it, and schedule the file-local ExportCm...
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 PostPhraseMsg(int nPhrase)
Post a PhraseMsg for one phrase.
void OnPhrasePacket(PhrasePacket *pPacket)
Install the phrase a PhrasePacket for this track carries at its step, or clear the step when the pack...
MsgSink * mNetSink
Sink the phrase changes go to as packets, installed by the stage classes' slot 8.
Definition phrasemgr.h:507
void RefreshBar(int nBar, int bClear)
Post one bar again when it lies in the window from mWindowStart up to mWindowEnd.
void RefreshAllBars()
Widen the window to the first mConfig + 1 bars and post each of them again.
int GetPowerbar(int nBar)
Phrase * GetPhraseAt(int nBar)
void SetPhraseOwner(Player *pPlayer, int nBar)
Give the phrase at a bar a new owner.
void OnRefreshNet(Message *pMsg)
Send mNetSink a CaughtPhrasePacket for the step of each bar a RefreshNetMsg for this track names.
virtual void DispatchPriv(Message *pMsg)
Act on a message.
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.
Player * GetOwner(int nBar) const
Report the player who owns the phrase at a bar.
void OnCaughtPhrasePacket(Message *pMsg)
Give the phrase of a CaughtPhrasePacket for this track to the player the packet identifies,...
void OnCommand(int nBar)
Play one bar through mPhrasePlayer and schedule the file-local Cmd for the next bar.
friend class PhraseEraser
Definition phrasemgr.h:60
void OnInvalidateTrack(InvalidateTrackMsg *pMsg)
Clear and post again every window bar whose mapped bar lies in the range an InvalidateTrackMsg for th...
void CreatePowerbarMgr()
Replace the powerbar source with the one the play mode and the track kind call for.
void StartCommands()
Schedule the file-local Cmd for bar 0 at position 0 and the file-local ExportCmd for bar 1,...
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.
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 tr...
int PhrasesMatch(int nFirstBar, int nSecondBar)
Report whether the phrases at two bars carry the same gems.
void PostGemMsgThird(int nBar, int bGhost)
Post each gem the track description lists for a bar as a GemMsg, when the bar is enabled.
friend class NotePitcher
Definition phrasemgr.h:59
void ResetOwners(Player *pPlayer)
Return every phrase to one owner and clear and post every bar of the window again.
friend class PhrasePlayer
Definition phrasemgr.h:61
friend class Scratcher
Definition phrasemgr.h:63
friend class ScoreTrackGraph
Definition phrasemgr.h:62
friend class Voxer
Definition phrasemgr.h:64
friend class Catcher
Definition phrasemgr.h:57
Network packet the game sends between game systems.
Definition phrasepacket.h:28
Player of the phrases one track is divided into.
Definition phraseplayer.h:30
One phrase of a track, with its gems, its player, and the messages and values scheduled across it.
Definition phrase.h:38
Traversal order over one playable sequence.
Definition playmap.h:47
One participant in a session, local or remote.
Definition player.h:39
Source of the powerbar a bar of one track awards when its phrase is caught.
Definition powerbarmgr.h:18
Handle that identifies one batch of commands the scheduler has queued.
Definition cmdid.h:35
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
Converted events of one track of a level.
Definition trackdata.h:52
Scheduling of timed commands.
Definition activefilter.h:9