C4 Engine Terathon Software C4 Engine API Documentation

• Message Manager

API Links
Developer Links

MessageMgr::BeginSinglePlayerGame

Defined in:  C4Messages.h
Configures the Message Manager for a single player game.
Prototype

void BeginSinglePlayerGame(void);

Description
Calling the BeginSinglePlayerGame function places the Message Manager in single player mode.

After calling BeginSinglePlayerGame, subsequent calls to MessageMgr::Multiplayer return false, and subsequent calls to MessageMgr::Server 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

MessageMgr::EndGame

MessageMgr::Multiplayer

MessageMgr::Server

NetworkMgr::Terminate