From 05750c44046f320109055aa5954ef0bbd977705f Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 10 Dec 2020 16:02:46 +0000 Subject: refactor clui: delete class ChatRoom, create own class for chat, players, tips (new), input --- src/client/clui/WindowInterface.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/client/clui/WindowInterface.hpp (limited to 'src/client/clui/WindowInterface.hpp') diff --git a/src/client/clui/WindowInterface.hpp b/src/client/clui/WindowInterface.hpp new file mode 100644 index 0000000..9151637 --- /dev/null +++ b/src/client/clui/WindowInterface.hpp @@ -0,0 +1,22 @@ +#ifndef WC_WINDOW_INTERFACE_H +#define WC_WINDOW_INTERFACE_H + +#include + +class WindowInterface { +protected: + WINDOW *w; + int ny, nx; + int beg_y, beg_x; + int ch_line; +public: + WindowInterface(int num_y, int num_x, int by, int bx, char ch); + ~WindowInterface(); + + WINDOW *GetWindow() { return w; } + void SetCursor(int y, int x); + void Clear(bool full); + void Update(); +}; + +#endif \ No newline at end of file -- cgit v1.2.3-18-g5258