2 #ifndef CLIENT__CHAT__H
3 #define CLIENT__CHAT__H
6 #include <SFML/Graphics.hpp>
24 std::array<sf::Text, 10> gameChat;
25 std::vector<Button> chatButton;
26 std::string message =
"";
32 void updateChat (std::string time, std::string username, std::string sendMessage);
34 void drawChat (std::shared_ptr<sf::RenderWindow> window);
class Chat -
Definition: Chat.hpp:21
void updateChat(std::string time, std::string username, std::string sendMessage)
update the Chat with a string
Definition: Chat.cpp:80
Chat()
Load all the chat.
Definition: Chat.cpp:30
void addChatChar(std::string ch)
Add a char to the chat message.
Definition: Chat.cpp:115
void deleteChatChar()
Delete a char to the chat message.
Definition: Chat.cpp:134
void incrementChat()
Move the index of text to i –.
Definition: Chat.cpp:66
void drawChat(std::shared_ptr< sf::RenderWindow > window)
display the entire Chat
Definition: Chat.cpp:150