152 void PostExit(
int nMode,
int bContinueJukebox,
int bRestart);
172 void Exit(
int nMode,
int bContinueJukebox,
int bRestart);
454 void ConnectPlayers();
465 void DisconnectPlayers();
475 void DeletePlayers();
487 void CreateRenderer();
511 void DestroyGraphs();
522 void StartSequencers();
642 std::vector<BGTrackGraph *> mBackingGraphs;
646 std::vector<BGTrackGraph *> mIntroGraphs;
The FreQuency application.
Definition application.h:23
Audio graph of one background track.
Definition bgtrackgraph.h:24
Sink that forwards the messages it receives to its own sinks.
Definition delayer.h:27
Driver of the controllers' vibration motors during a song.
Definition forcefeedbackmgr.h:29
Appearance of a player's avatar.
Definition freqappearance.h:39
Running tally a game session accumulates.
Definition gamestats.h:27
One participant's view of a session, driven by messages.
Definition gamer.h:47
std::vector< Player * > mPlayers
Every player in the world, in slot order.
Definition grooveworld.h:658
void KillRenderer()
Detach the renderer from every source that feeds it and delete it.
void SetNetIO(MsgSink *pSink, MsgSource *pSource)
Install the sink and the source the gamer is wired to.
void PrepareLevel()
Prepare the loaded level for play.
RendererBase * GetRendererSink()
Report the renderer's RendererBase half.
HxStr GetSongName() const
Report the jukebox song title.
void PostFinish()
Queue the finish exit, mode 1, with the current mContinueJukebox.
InputMap * mInputMap
The input map of the world's players.
Definition grooveworld.h:596
void PostQuit()
Queue the quit exit, mode 2.
void PostExit(int nMode, int bContinueJukebox, int bRestart)
Queue an ExitCmd built from three values.
virtual void DispatchPriv(Message *pMsg)
Route a CripplePacket to the delayer and a BumpPacket to the track selector.
std::vector< ScoreTrackGraph * > mTrackGraphs
Definition grooveworld.h:638
std::vector< Player * > mLocalPlayers
The players this console drives.
Definition grooveworld.h:668
friend class InputPoller
Definition grooveworld.h:68
void OnBumpPacket(Message *pMsg)
Hand a BumpPacket to the track selector.
void Shutdown()
Tear the world down ahead of destruction.
void Exit(int nMode, int bContinueJukebox, int bRestart)
Leave the game in one of three modes.
void MarkStatsFlag()
Set the statistics word at +0x14 of mStats to 1.
void AddLocalPlayer(int nId, int nInputSlot, int nUnused, const HxStr &colorName, MetPersonaData *pPersona)
Create a player this console drives and append it to mPlayers and mLocalPlayers.
void LoadPhrases(IBStream &stream, int bClearOwners)
Read the phrase database of every score track graph back.
int mContinueJukebox
Non-zero while a jukebox session goes on to its next song.
Definition grooveworld.h:723
int IsLoadDone()
Report whether the MIDI file read has completed.
int mIsPlayback
Non-zero while the world plays back a recording.
Definition grooveworld.h:687
ForceFeedbackMgr * mForceFeedback
Vibration driver of the controllers.
Definition grooveworld.h:633
void StartLoad(const HxStr &path)
Create the level and begin reading its MIDI file asynchronously.
Gamer * mGamer
The scoring state.
Definition grooveworld.h:620
virtual void OnControllerReading(int nTag, int nPadIndex, int nButton, float flValue)
Report a controller reading.
GrooveWorld(Application *pApp, GameStats *pStats)
Construct an empty world.
void SavePhrases(OBStream &stream)
Write the phrase database of every score track graph.
void PostRestart()
Queue the restart exit, mode 3, with mRestart set.
void EnableInput()
Enable every entry of the input map.
void RemovePlayer(int nId)
Remove the first player with an identifier from mPlayers, without destroying it.
void FinishLoad()
Convert the MIDI file into the level and adopt the level's tempo map.
void StartPlay()
Starts play on a prepared level.
void OnCripplePacket(Message *pMsg)
Hand a CripplePacket to the delayer.
int mIsTutorial
Non-zero in a tutorial level, from the tutorial configuration flag 0x3a1.
Definition grooveworld.h:695
Sch::TickClock * GetSongClock()
Report the world's song clock.
void DisplayText(const HxStr &text)
Show a line of text on the track displays.
void ReplayControllerReading(const MetControllerReading *pReading)
Hand one recorded controller reading to the input map.
PlayMap * GetPlayMap()
Report the level's play map.
HxStr mSongName
Song title shown in jukebox mode.
Definition grooveworld.h:713
void AddNetPlayer(int nId, int nUnused, const HxStr &name, const FreqAppearance *pAppearance)
Create a remote player and append it to mPlayers.
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
Accumulator a MIDI conversion fills, and the one implementation of LevelData.
Definition levelbuilder.h:51
Read-only interface the game reads one converted level through.
Definition leveldata.h:27
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
One controller reading, as RawControllerMsg carries it.
Definition metcontrollerreading.h:24
Saved record of one player persona.
Definition metpersonadata.h:39
Sink that sends every message it receives on to its own sinks.
Definition msgjoiner.h:22
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
Owner of the players that are sounding, and the sink that starts them.
Definition musesynth.h:36
Output half of the byte stream interface.
Definition obstream.h:25
Traversal order over one playable sequence.
Definition playmap.h:47
One participant in a session, local or remote.
Definition player.h:39
Base of every object that reads a controller directly.
Definition rawcontroller.h:19
Base of every renderer, with a message queue and a router of its own.
Definition rendererbase.h:27
In-game renderer that drives the tunnel, the overlay, and the arena for one game.
Definition renderer.h:56
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40
Shared base of the four per-instrument gameplay stages.
Definition scoretrackgraph.h:51
Grid of which players occupy which track channel.
Definition trackselector.h:61
Scheduling of timed commands.
Definition activefilter.h:9