#include "../include/RoomContainer.hpp" namespace dchat { RoomContainer::RoomContainer(std::shared_ptr _room) : room(_room), messageBoard(_room), offlineRoom(false) { } void RoomContainer::processEvent(const sf::Event &event, Cache *cache) { chatbar.processEvent(event, cache, room, &messageBoard); messageBoard.processEvent(event, cache); } void RoomContainer::draw(sf::RenderWindow &window, Cache *cache) { messageBoard.draw(window, cache); chatbar.draw(window, cache); } }