Civilization
Public Member Functions | Public Attributes | List of all members
client::Chat Class Reference

class Chat - More...

#include <Chat.hpp>

Public Member Functions

 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.
 

Public Attributes

std::array< sf::Text, 10 > gameChat
 
std::vector< ButtonchatButton
 
std::string message = ""
 
std::mutex mutexChat
 
sf::Font chatFont
 

Detailed Description

class Chat -

Member Function Documentation

◆ updateChat()

void Chat::updateChat ( std::string  time,
std::string  username,
std::string  sendMessage 
)

update the Chat with a string

Parameters
timewhen the message is sent
usernameuser of the player that send the message
sendMessagemessage to be add to the chat

The documentation for this class was generated from the following files: