Fix for the problem that SDL applications exited
[AROS-Contrib.git] / Games / lbreakout2 / client / client_handlers.h
bloba9eeda999a5b19fe25f9cd3e3cf318d781ae9efb
1 /***************************************************************************
2 client_handlers.h - description
3 -------------------
4 begin : Sat Oct 26 12:02:57 CEST 2002
5 copyright : (C) 2002 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef __CLIENT_HANDLERS_H
19 #define __CLIENT_HANDLERS_H
22 ====================================================================
23 Disconnect from current server if any.
24 ====================================================================
26 void client_disconnect();
29 ====================================================================
30 Try to connect to a game server. Retry twice every three seconds
31 or quit then.
32 ====================================================================
34 void client_connect( GuiWidget *widget, GuiEvent *event );
37 ====================================================================
38 Open/close the connection window.
39 ====================================================================
41 void client_open_connect_window( GuiWidget *widget, GuiEvent *event );
42 void client_close_connect_window( GuiWidget *widget, GuiEvent *event );
45 ====================================================================
46 Close chatroom and return to LBreakout's menu.
47 ====================================================================
49 void client_quit( GuiWidget *widget, GuiEvent *event );
52 ====================================================================
53 Close the info window and clear state.
54 ====================================================================
56 void client_close_info( GuiWidget *widget, GuiEvent *event );
59 ====================================================================
60 Send chatter this function is either called by the send button
61 or by the edit.
62 ====================================================================
64 void client_send_chatter(
65 GuiWidget *widget, GuiEvent *event );
67 ====================================================================
68 Whisper chatter if a user is selected.
69 ====================================================================
71 void client_whisper_chatter(
72 GuiWidget *widget, GuiEvent *event );
75 ====================================================================
76 Update selected peer and levelset.
77 ====================================================================
79 void client_handle_user_list(
80 GuiWidget *widget, GuiEvent *event );
81 void client_handle_levelset_list(
82 GuiWidget *widget, GuiEvent *event );
85 ====================================================================
86 Handle confirmation/cancelling of confirmation dialogue.
87 ====================================================================
89 void client_confirm( GuiWidget *widget, GuiEvent *event );
90 void client_cancel( GuiWidget *widget, GuiEvent *event );
93 ====================================================================
94 Challenge selected user.
95 ====================================================================
97 void client_challenge( GuiWidget *widget, GuiEvent *event );
100 ====================================================================
101 Update multiplayer network configuration.
102 ====================================================================
104 void client_update_difficulty( GuiWidget *widget, GuiEvent *event );
105 void client_update_rounds( GuiWidget *widget, GuiEvent *event );
106 void client_update_frags( GuiWidget *widget, GuiEvent *event );
107 void client_update_balls( GuiWidget *widget, GuiEvent *event );
108 void client_update_port( GuiWidget *widget, GuiEvent *event );
111 ====================================================================
112 Allow user to transfer a levelset.
113 ====================================================================
115 void client_listen( GuiWidget *widget, GuiEvent *event );
118 ====================================================================
119 Initiate levelset transfer.
120 ====================================================================
122 void client_transfer( GuiWidget *widget, GuiEvent *event );
125 ====================================================================
126 Open channel selector
127 ====================================================================
129 void client_select_channel( GuiWidget *widget, GuiEvent *event );
131 ====================================================================
132 Handle channel (un)selection.
133 ====================================================================
135 void client_handle_channel_list(
136 GuiWidget *widget, GuiEvent *event );
138 ====================================================================
139 Close channel selector or enter new channel.
140 ====================================================================
142 void client_enter_channel( GuiWidget *widget, GuiEvent *event );
143 void client_cancel_channel( GuiWidget *widget, GuiEvent *event );
146 ====================================================================
147 Close statistics
148 ====================================================================
150 void client_close_stats( GuiWidget *widget, GuiEvent *event );
153 ====================================================================
154 Send chatter to gamepeer in pauseroom when ENTER was pressed.
155 ====================================================================
157 void client_send_pausechatter( GuiWidget *widget, GuiEvent *event );
160 ====================================================================
161 Close pauseroom.
162 ====================================================================
164 void client_close_pauseroom( GuiWidget *widget, GuiEvent *event );
167 ====================================================================
168 Popup help dialogue.
169 ====================================================================
171 void client_popup_help( GuiWidget *widget, GuiEvent *event );
173 ====================================================================
174 Close help dialogue.
175 ====================================================================
177 void client_close_help( GuiWidget *widget, GuiEvent *event );
179 ====================================================================
180 Select topic and display help text.
181 ====================================================================
183 void client_handle_topic_list( GuiWidget *widget, GuiEvent *event );
185 #endif