ChatMessage
Last updated
Last updated
The ChatMessage class is a nested class inside the class. It represents messages that was sent by players in the matchmaking lobby. Each ChatMessages is assigned to a player and contains a string. The ChatMessage object cannot be copied or moved.
The constructor of the ChatMessage class.
room
: A reference to the room where the chat message has been sent.
playerId
: The id of the player that sent this message.
message
: The string containing the message that has been sent.
Returns the time when the message has been sent.
A std::chrono::system_clock::time_point
const reference that stores the time.
Returns the id of the player that sent this message.
An unsigned int
containing the player id
Returns a string containing the chat message that has been sent.
A std::string
const reference that stores the message.