C4 Engine
C4 Engine API Documentation

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::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

MessageMgr::EndGame

MessageMgr::GetMultiplayerFlag

MessageMgr::GetServerFlag

NetworkMgr::Terminate