Player::SendMessage
Defined in:
Sends a message to a specific player in a multiplayer game.
C4Messages.h
Prototype
void SendMessage(const Message& message);
Parameters
message |
The message to be sent. |
Description
The SendMessage
function sends the message given by the message
parameter to the machine represented by the Player
object. Messages may be sent only to remote machines for which an actual connection with the local machine exists. Since client machines are normally connected only to the server, messages may not be sent directly from client to client. A call to the SendMessage
function has no effect if there is no connection corresponding to the player.
See Also