aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
blob: 4d1f528c43d7709b26ba3ad153d5b61c1271490d (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
27
28
#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;
    };
}