598 void RunStateCheck();
632 void FinishWorldLoad();
653 void AddPersonaPlayers();
664 void EndGame(
int bRestart);
678 std::vector<MetPersonaData *> mPersonas;
virtual GrooveWorld * GetWorld()
Resolve the world a game session runs in.
virtual void SetParams(const GameParams ¶ms)
Replace the settings and republish the two modes.
virtual int GetUnwrittenValue()
Report a word that only the constructor writes.
virtual void OnUnpauseGameSystem(Message *pMsg)
Resume the session.
virtual void Load(IBStream *pStream)
Read the manager back from a stream.
virtual void StartPlay()
Starts play on the game world.
virtual int GetDifficulty()
Report the difficulty.
virtual void Recreate(const HxStr &file, int nUnusedFlag)
Replay a recorded session from a file.
virtual void OnBeginGameLocal(Message *pMsg)
Enter a local game.
virtual ~GameManagerImpl()
Destroy the recorder, the front-end world, the poller, the queue, and the tally.
virtual void QueueMessage(Message *pMsg)
Store a message on the embedded queue.
virtual void Save(OBStream *pStream)
Write the manager to a stream.
virtual int GetGameMode()
Resolve the connectivity mode.
virtual void SetGameMode(int nMode)
Record the connectivity mode and publish it to the script layer.
virtual void SetPlayMode(int nMode)
Record the play mode and publish it to the script layer.
virtual int IsPlaybackActive()
Report whether a playback is running.
virtual void OnDoPlayback(Message *pMsg)
Replay the recording the script layer nominates.
GameManagerImpl()
Build the manager, its input poller, and its message queue.
virtual MetaGameWorld * GetMetaWorld()
Resolve the front-end world.
virtual GameStats * GetStats()
Resolve the tally.
virtual void ClearPersonas()
Delete every persona on the roster and empty it.
virtual int GetPlayMode()
Resolve the play mode.
virtual int GetChangeCount()
Report how many times the settings have changed.
virtual void DrawFrameSimple()
Redraw the front-end world alone.
virtual void OnPauseGameSystem(Message *pMsg)
Pause the session.
virtual int GetWorldLoadFlag()
Report the flag the world load sets.
virtual std::vector< MetPersonaData * > * GetPersonas()
Resolve the roster.
virtual void Start()
Create the front-end world and hand it to the poller.
virtual void PollPlayback()
Poll the controllers, and end a playback when a button is pressed.
virtual void OnEndGame(Message *pMsg)
Leave the game.
virtual InputPoller * GetPoller()
Resolve the controller reader.
virtual GameParams * GetParams()
Resolve the settings a session starts with.
virtual void StartRecording()
Start recording the session.
virtual void DrawFrame()
Draw one frame.
virtual void AddPersona(const MetPersonaData &persona)
Copy one persona onto the roster.
virtual void DispatchPriv(Message *pMsg)
Act on a message.
virtual void SetDrawEnabled(int nEnabled)
Enable or suppress drawing.
virtual void SetDifficulty(int nDifficulty)
Record the difficulty and publish it to the script layer.
Settings a game session is started with.
Definition gameparams.h:42
Playback of a recorded game session that GameManagerImpl::Recreate() installs.
Definition gameplaybacker.h:12
Recording of a game session that GameManagerImpl::StartRecording() installs.
Definition gamerecorder.h:13
Running tally a game session accumulates.
Definition gamestats.h:27
Owner of the world a game session runs in.
Definition grooveworld.h:66
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Saved record of one player persona.
Definition metpersonadata.h:39
Relay that stores a copy of every message it accepts and forwards to its own sinks.
Definition msgqueue.h:34
Receiver of engine messages.
Definition msgsink.h:37
Output half of the byte stream interface.
Definition obstream.h:25
PlayMode
Kind of a session, recorded by GameManagerImpl::SetPlayMode().
Definition gamemanagerimpl.h:34
@ kPlayModeGame
Definition gamemanagerimpl.h:34
@ kPlayModeJam
Definition gamemanagerimpl.h:34
@ kPlayModeNone
Definition gamemanagerimpl.h:34
GameMode
Connectivity of a session, recorded by GameManagerImpl::SetGameMode().
Definition gamemanagerimpl.h:27
@ kGameModeNet
Definition gamemanagerimpl.h:27
@ kGameModeNone
Definition gamemanagerimpl.h:27
@ kGameModeLocal
Definition gamemanagerimpl.h:27
@ kGameModeSolo
Definition gamemanagerimpl.h:27