aboutsummaryrefslogtreecommitdiff
path: root/include/RoomContainer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/RoomContainer.hpp')
-rw-r--r--include/RoomContainer.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/RoomContainer.hpp b/include/RoomContainer.hpp
new file mode 100644
index 0000000..fc3e8ae
--- /dev/null
+++ b/include/RoomContainer.hpp
@@ -0,0 +1,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;
+ };
+} \ No newline at end of file