#pragma once #include "MessageBoard.hpp" #include "Chatbar.hpp" #include "User.hpp" #include "Channel.hpp" namespace dchat { class Channel { public: Channel(const std::string &name); ~Channel(); User* getLocalUser(); MessageBoard& getMessageBoard(); const std::string& getName() const; void processEvent(const sf::Event &event); void draw(sf::RenderWindow &window, const sf::Vector2f &position, Cache &cache); private: MessageBoard messageBoard; Chatbar chatbar; OfflineUser localOfflineUser; std::string name; }; }