309 void ScheduleBar(
int nBar);
321 void AdvanceTo(
int nBar,
int nAdvance);
332 bool SendTracksOn(
int nBar);
343 bool FreeTracksAfterCapture(
int nBar);
354 void DeclareWinners();
365 void RecordSoloStats(
int bCompleted,
int nBar);
409 std::vector<Player *> mPlayers;
411 std::vector<BGTrackGraph *> *mBackGraphs;
412 std::vector<ScoreTrackGraph *> *mGraphs;
425 int mFreestyleEndBar;
Event the game passes between a MsgSource and a MsgSink.
Definition advancesectionmsg.h:24
Audio graph of one background track.
Definition bgtrackgraph.h:24
Event the game passes between a MsgSource and a MsgSink.
Definition cripplemsg.h:25
Event the game passes between a MsgSource and a MsgSink.
Definition enablefreestylemsg.h:24
Policy that decides which tracks a player may catch at each bar.
Definition enablemgr.h:16
Running tally a game session accumulates.
Definition gamestats.h:27
EnableMgr * mEnableMgr
Per-track enable policy.
Definition gamer.h:436
virtual ~Gamer()
Withdraw the queued command and delete both enable policies.
int mJuiceFrozen
Non-zero while the per-bar juice charge is suspended.
Definition gamer.h:384
void OnBar(int nBar)
Run the update of one bar and schedule the next.
bool IsFreestyleTrack(int nTrack) const
Report whether one track is outside catch mode.
void EndWithScore(int nScore)
End the game at the next bar, optionally with a score for the first player.
void Withdraw()
Withdraw every command queued under mCommand from the song clock.
PhraseDatabase * GetPhraseDatabase(int nTrack)
Report the phrase database of one track's graph.
int mCheated
Non-zero once a cheat ran during the game.
Definition gamer.h:449
void EnablePlayerFreestyle(int nStartBar, int nEndBar)
Give the first player a freestyle span.
Gamer(int nTrackCount, int nEndBar, GameStats *pStats)
Build the participant's view for a level.
void AdvanceAt(Sch::Tick position)
Advance to the bar of a position, with PlayMap::ToggleLoop() of that bar as the advance.
void Start()
Schedule the first bar's update.
void CreateEnableMgr(std::vector< ScoreTrackGraph * > *pGraphs)
Record the track graphs and build the enable policy for the session mode.
void AddJuice(int nAmount)
Add juice to the first player and announce it.
TrackData * GetTrack(int nTrack) const
Report one track of the level.
void SetBackGraphs(std::vector< BGTrackGraph * > *pGraphs)
Record the background tracks and build the enable policy for them.
void SetBarOwner(int nTrack, int nBar, Player *pPlayer)
Record a player against one bar of one track.
int QueryBar(int nTrack, int nBar)
Ask whether one bar of one track may be caught.
std::vector< MsgSource > mTrackSources
One message source per track.
Definition gamer.h:421
virtual void DispatchPriv(Message *pMsg)
Receive one message.
Abstract owner of the process-wide services.
Definition globals.h:47
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
Event the game passes between a MsgSource and a MsgSink.
Definition phrasecapturedmsg.h:27
Store of one phrase per step of a play map, and one jam effect mask per step.
Definition phrasedatabase.h:29
Traversal order over one playable sequence.
Definition playmap.h:47
Event the game passes between a MsgSource and a MsgSink.
Definition playbackmodemsg.h:23
One participant in a session, local or remote.
Definition player.h:39
Handle that identifies one batch of commands the scheduler has queued.
Definition cmdid.h:35
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
Shared base of the four per-instrument gameplay stages.
Definition scoretrackgraph.h:51
Converted events of one track of a level.
Definition trackdata.h:52