47 INPUTSTATE_PASSWORD, |
47 INPUTSTATE_PASSWORD, |
48 INPUTSTATE_CONFIRM_DISCONNECTION, |
48 INPUTSTATE_CONFIRM_DISCONNECTION, |
49 }; |
49 }; |
50 |
50 |
51 Interface(); |
51 Interface(); |
52 void handle_input(); |
52 void connect(String address, String password); |
|
53 void disconnected(); |
|
54 RCONSession* getSession() { return &m_session; } |
|
55 void handleCommand(const String& input); |
|
56 void handleInput(); |
|
57 void needRefresh(); |
|
58 void __cdecl print(const char* fmtstr, ...); |
|
59 void __cdecl printWarning(const char* fmtstr, ...); |
|
60 void __cdecl printError(const char* fmtstr, ...); |
|
61 void __cdecl printText(const char* fmtstr, ...); |
53 void render(); |
62 void render(); |
54 void render_full(); |
63 void renderFull(); |
55 void set_title (const String& message); |
64 void setPlayerNames(const StringList& names); |
56 void update_statusbar(); |
65 void setTitle(const String& message); |
57 void connect (String address, String password); |
66 void tabComplete(const String& part, String complete); |
58 void set_player_names (const StringList& names); |
67 void updateStatusBar(); |
59 void need_refresh(); |
68 void vprint(const char* fmtstr, va_list args); |
60 void tab_complete (const String& part, String complete); |
|
61 RCONSession* get_session() { return &m_session; } |
|
62 void handle_command(const String& input); |
|
63 void disconnected(); |
|
64 |
|
65 void vprint (const char* fmtstr, va_list args); |
|
66 void __cdecl print (const char* fmtstr, ...); |
|
67 void __cdecl print_warning (const char* fmtstr, ...); |
|
68 void __cdecl print_error (const char* fmtstr, ...); |
|
69 void __cdecl print_text (const char* fmtstr, ...); |
|
70 |
69 |
71 private: |
70 private: |
72 StringList m_inputHistory; |
71 StringList m_inputHistory; |
73 int m_inputCursor; |
72 int m_inputCursor; |
74 int m_cursorPosition; |
73 int m_cursorPosition; |