blob: c56068802241a51578287d08dad47c2e25324d43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "../include/RoomContainer.hpp"
namespace dchat
{
RoomContainer::RoomContainer(std::shared_ptr<Room> _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);
}
}
|