MessageMgr::BeginSinglePlayerGame
Defined in:
Configures the Message Manager for a single player game.
C4Messages.h
Prototype
void BeginSinglePlayerGame(void);
Description
Calling the BeginSinglePlayerGame
function places the Message Manager in single player mode.After calling
BeginSinglePlayerGame
, subsequent calls to MessageMgr::GetMultiplayerFlag
return false
, and subsequent calls to MessageMgr::GetServerFlag
return true
.The
BeginSinglePlayerGame
function calls the Network Manager function NetworkMgr::Terminate
to disable network communications. This has the effect of terminating any existing connections in a disorderly fashion, so any previous multiplayer game should be stopped with the MessageMgr::EndGame
function first.
See Also
MessageMgr::BeginMultiplayerGame