aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
blob: b70803c242b2782c98f29a9be880240ddcba4ef4 (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 "User.hpp"
#include "Channel.hpp"

namespace dchat
{
    class Channel
    {
    public:
        Channel();
        ~Channel();
        
        User* getLocalUser();
        MessageBoard& getMessageBoard();
        
        void processEvent(const sf::Event &event);
        void draw(sf::RenderWindow &window, Cache &cache);
    private:
        MessageBoard messageBoard;
        Chatbar chatbar;
        OfflineUser localOfflineUser;
    };
}