aboutsummaryrefslogtreecommitdiff
path: root/include/Channel.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-23 18:49:45 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-23 18:49:52 +0200
commit7e7dfd227eacaa80b21ca8ed99e8a99ccbd47769 (patch)
tree016e3907471ae1b588c35cf963ea2551efc57cfc /include/Channel.hpp
parent3ab4127ae3fc3b837f5350509c78db03467500cd (diff)
Add side bar, make submodule public
Diffstat (limited to 'include/Channel.hpp')
-rw-r--r--include/Channel.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Channel.hpp b/include/Channel.hpp
index b70803c..4d1f528 100644
--- a/include/Channel.hpp
+++ b/include/Channel.hpp
@@ -10,17 +10,19 @@ namespace dchat
class Channel
{
public:
- Channel();
+ 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, Cache &cache);
+ void draw(sf::RenderWindow &window, const sf::Vector2f &position, Cache &cache);
private:
MessageBoard messageBoard;
Chatbar chatbar;
OfflineUser localOfflineUser;
+ std::string name;
};
}