//#ifndef SHOOTER_SHOOTERSERVER_H #ifndef CHAT_H #define CHAT_H #include #include using namespace std; class ChatManager final { private: std::vector messages; std::vector authors; bool isChatUpdate = true; std::string chatStr = ""; std::string chatStrPrev = ""; double hide = 0.0; void updateChat(); public: void addNewMessage(std::string author, std::string message); int update(double delta); std::string getChat(); std::string getChatPreview(); }; #endif