|
Message Manager
C4Messages.h
class StateSenderEncapsulates a function that sends initial game state in a multiplayer game.Definition
Constructor
Parameters
Description
The StateSender class encapsulates a function that is called whenever a new client machine joins a multiplayer game. All state-sending functions are called immediately after the Message Manager sends the kPlayerInitialized event to the Application::HandlePlayerEvent function on the server machine. The function pointed to by the proc parameter should have the following prototype.
to parameter in order to synchronize some kind of initial game state.The World Manager installs a state-sending function that sends initial controller state messages to a new client. A controller can send initial game state messages by overriding the Controller::SendInitialStateMessages function.
Base Classes
See Also
MessageMgr::InstallStateSender
Controller::SendInitialStateMessages
|