class Chat -
More...
#include <Chat.hpp>
|
| Chat () |
| Load all the chat.
|
|
void | updateChat (std::string time, std::string username, std::string sendMessage) |
| update the Chat with a string More...
|
|
void | incrementChat () |
| Move the index of text to i –.
|
|
void | drawChat (std::shared_ptr< sf::RenderWindow > window) |
| display the entire Chat
|
|
void | addChatChar (std::string ch) |
| Add a char to the chat message.
|
|
void | deleteChatChar () |
| Delete a char to the chat message.
|
|
|
std::array< sf::Text, 10 > | gameChat |
|
std::vector< Button > | chatButton |
|
std::string | message = "" |
|
std::mutex | mutexChat |
|
sf::Font | chatFont |
|
◆ updateChat()
void Chat::updateChat |
( |
std::string |
time, |
|
|
std::string |
username, |
|
|
std::string |
sendMessage |
|
) |
| |
update the Chat with a string
- Parameters
-
time | when the message is sent |
username | user of the player that send the message |
sendMessage | message to be add to the chat |
The documentation for this class was generated from the following files:
- include/client/Chat.hpp
- src/client/Chat.cpp