aboutsummaryrefslogtreecommitdiff
path: root/include/RoomContainer.hpp
blob: fc3e8ae016dd24d6df9517908e57fd23881be293 (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
25
26
#pragma once

#include "MessageBoard.hpp"
#include "Chatbar.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <memory>

namespace dchat
{
    class Room;
    class Cache;

    class RoomContainer
    {
    public:
        RoomContainer(std::shared_ptr<Room> room);

        void processEvent(const sf::Event &event, Cache *cache);
        void draw(sf::RenderWindow &window, Cache *cache);
        
        std::shared_ptr<Room> room;
        MessageBoard messageBoard;
        Chatbar chatbar;
        bool offlineRoom;
    };
}