56 void update_statusbar(); |
56 void update_statusbar(); |
57 void connect (String address, String password); |
57 void connect (String address, String password); |
58 void set_player_names (const StringList& names); |
58 void set_player_names (const StringList& names); |
59 void need_refresh(); |
59 void need_refresh(); |
60 void tab_complete (const String& part, String complete); |
60 void tab_complete (const String& part, String complete); |
61 RCONSession* get_session() { return &Session; } |
61 RCONSession* get_session() { return &m_session; } |
62 void handle_command(const String& input); |
62 void handle_command(const String& input); |
63 void disconnected(); |
63 void disconnected(); |
64 |
64 |
65 void vprint (const char* fmtstr, va_list args); |
65 void vprint (const char* fmtstr, va_list args); |
66 void __cdecl print (const char* fmtstr, ...); |
66 void __cdecl print (const char* fmtstr, ...); |
67 void __cdecl print_warning (const char* fmtstr, ...); |
67 void __cdecl print_warning (const char* fmtstr, ...); |
68 void __cdecl print_error (const char* fmtstr, ...); |
68 void __cdecl print_error (const char* fmtstr, ...); |
69 void __cdecl print_text (const char* fmtstr, ...); |
69 void __cdecl print_text (const char* fmtstr, ...); |
70 |
70 |
71 private: |
71 private: |
72 StringList InputHistory; |
72 StringList m_inputHistory; |
73 int InputCursor; |
73 int m_inputCursor; |
74 int CursorPosition; |
74 int m_cursorPosition; |
75 int InputPanning; |
75 int m_inputPanning; |
76 bool NeedRefresh; |
76 bool m_needRefresh; |
77 bool NeedStatusBarRender; |
77 bool m_needStatusBarRender; |
78 bool NeedInputRender; |
78 bool m_needInputRender; |
79 bool NeedOutputRender; |
79 bool m_needOutputRender; |
80 bool NeedNicklistRender; |
80 bool m_needNicklistRender; |
81 struct { char ch; int x; } CursorCharacter; |
81 struct { char ch; int x; } m_cursorCharacter; |
82 Vector<ColoredLine> OutputLines; |
82 Vector<ColoredLine> m_outputLines; |
83 int OutputScroll; |
83 int m_outputScroll; |
84 String Title; |
84 String m_title; |
85 InputState CurrentInputState; |
85 InputState m_inputState; |
86 std::function<void(bool)> DisconnectConfirmFunction; |
86 std::function<void(bool)> m_disconnectCallback; |
87 IPAddress CurrentAddress; |
87 IPAddress m_remoteAddress; |
88 String StatusBarText; |
88 String m_statusBarText; |
89 StringList PlayerNames; |
89 StringList m_playerNames; |
90 String PasteBuffer; |
90 String m_pasteBuffer; |
91 RCONSession Session; |
91 RCONSession m_session; |
92 |
92 |
93 void render_titlebar(); |
93 void render_titlebar(); |
94 void safe_disconnect (std::function<void(bool)> afterwards); |
94 void safe_disconnect (std::function<void(bool)> afterwards); |
95 int render_colorline (int y, int x0, int width, const ColoredLine& line, bool allowWrap); |
95 int render_colorline (int y, int x0, int width, const ColoredLine& line, bool allowWrap); |
96 int nicklist_width(); |
96 int nicklist_width(); |