ChatMessageclass encapsulates a message that contains a text string.
class ChatMessage : public ReflectingMessage
ChatMessage(const char *text);
||A pointer to the text string to be stored in the message object. This string is truncated to the maximum length given by the |
DescriptionA message of type
ChatMessageis used to send a text message to other players in a game. The
ChatMessageobject contains both the text message and the player ID of the machine from which it originated. When a chat message is received, the Message Manager calls the
Application::HandlePlayerEventfunction with the
kPlayerChatReceivedevent to pass the text message to the application module. In this case, the
paramparameter passed to the
HandlePlayerEventfunction points to the chat text string.
||All message types are subclasses of |