|
Message Manager
C4Messages.h
MessageMgr::GetPlayerReturns the player having a specific key.Prototype
Parameters
Description
The GetPlayer function attempts to locate the player whose key matches that given by the key parameter. If the player exists, then a pointer to it is returned. Otherwise, GetPlayer returns nullptr. The constant kPlayerServer may be specified to retrieve the player representing the server on any machine in a multiplayer game.The entire map of players may be accessed by using the MessageMgr::GetFirstPlayer function.
See Also
MessageMgr::GetFirstPlayer
MessageMgr::GetLocalPlayer
Player
|