FS2_Open
Open source remastering of the Freespace 2 engine
stand_gui.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _FREESPACE_STANDALONE_GUI_HEADER_FILE
13 #define _FREESPACE_STANDALONE_GUI_HEADER_FILE
14 
15 #include "network/multi.h"
16 #include "network/multi_options.h"
17 
18 #ifndef _WIN32
20 #endif
21 
22 // ----------------------------------------------------------------------------------------
23 // external variables
24 //
25 
26 struct net_player;
27 
28 // ----------------------------------------------------------------------------------------
29 // generic dialog functions
30 //
31 
32 // create the validate dialog
33 void std_create_gen_dialog(char *title);
34 
35 // kill the validate dialog();
37 
38 // set the text in the filename of the validate dialog
39 // valid values for field_num == 0 .. 2
40 void std_gen_set_text(char *str, int field_num);
41 
42 // is the validate dialog active
43 int std_gen_is_active();
44 
45 
46 // ----------------------------------------------------------------------------------------
47 // connection page/tab functions
48 //
49 
50 // set the text box indicating how many players are connected, returning the determined count
52 
53 // set the connect status (connected or not) of the game host
55 
56 // add an ip string to the connect page listbox
57 void std_connect_add_ip_string(char *string);
58 
59 // remove an ip string from the connect page listbox
60 void std_connect_remove_ip_string(char *string);
61 
62 // set an ip string on the connect page listbox
63 void std_connect_set_ip_string(char *lookup,char *string);
64 
65 // kick a player (the one currently selected in the listbox)
67 
68 // update the ping for this particular player
70 
71 // clear all the controls for this page
73 
74 // set the game name for the standalone. passing NULL uses the default
75 void std_connect_set_gamename(char *name);
76 
77 // the user has changed the text in the server name text box. handle this
79 
80 // the user has changed the text in the host password text box
82 
83 
84 // ----------------------------------------------------------------------------------------
85 // multiplayer page/tab functions
86 //
87 
88 // set the mission time in seconds
89 void std_multi_set_standalone_missiontime(float mission_time);
90 
91 // set the mission name
92 void std_multi_set_standalone_mission_name(char *mission_name);
93 
94 // initialize the goal tree for this mission
96 
97 // add all the goals from the current mission to the tree control
98 void std_multi_add_goals();
99 
100 // update all the goals in the goal tree based upon the mission status
102 
103 // set the framerate text box for this tab
104 void std_multi_set_framerate(float f);
105 
106 // clear all the controls for this page
108 
109 // update the netgame information area controls with the current Netgame settings
111 
112 
113 // ---------------------------------------------------------------------------------------
114 // player info page/tab functions
115 //
116 
117 // start displaying info for the passed player on this page
119 
120 // check to see if this player is the one being displayed, and if so, then update the display info
121 // return 1 if the player was updated
123 
124 // add a player to the list on the player info page
126 
127 // remove a player from the list on the player info page
129 
130 // update the ping display for this player
132 
133 // clear all the controls for this page
135 
136 
137 // ---------------------------------------------------------------------------------------
138 // player god stuff page/tab functions
139 //
140 
141 // add a player to the listbox on the godstuff page
143 
144 // remove a player from the listbox on the godstuff page
146 
147 // send a message as if the standalone were a player
149 
150 // set the framerate text box for this page
151 void std_gs_set_framerate(float f);
152 
153 // clear all the controls for this page
154 void std_gs_clear_controls();
155 
156 
157 // ---------------------------------------------------------------------------------------
158 // debug page/tab functions
159 //
160 
161 // set the text on the standalones state indicator box
163 
164 // clear all the controls for this page
166 
167 
168 // ---------------------------------------------------------------------------------------
169 // general functions
170 //
171 
172 // add a player and take care of updating all gui/data details
174 
175 // remove a player and take care of updateing all gui/data details
177 
178 // set any relevant controls which display the framerate of the standalone
179 void std_set_standalone_fps(float fps);
180 
181 // update any relveant controls which display the ping for the given player
183 
184 // reset all gui stuff for the standalone
186 
187 // reset all networking/gui stuff (calls reset_standalone_gui) for the standalone
189 
190 // setup registry access, etc for the standalone
191 void std_init_os();
192 
193 // close down the standalone
194 void std_deinit_standalone();
195 
196 // initialize the standalone
197 void std_init_standalone();
198 
199 // do any gui related issues on the standalone (like periodically updating player stats, etc...)
200 void std_do_gui_frame();
201 
202 // notify the user that the standalone has failed to login to the tracker on startup
204 
205 // attempt to log the standalone into the tracker
206 void std_tracker_login();
207 
208 // reset all stand gui timestamps
209 void std_reset_timestamps();
210 
211 // add a line of text chat to the standalone
212 void std_add_chat_text(const char *text,int player_index,int add_id);
213 
214 // if the standalone is host password protected
215 int std_is_host_passwd();
216 
217 // change the default property sheet interface into something more useful
218 void std_mutate_sheet();
219 
220 // if the given callsign is banned from the server
221 int std_player_is_banned(const char *name);
222 
223 // add a callsign to the ban list
224 void std_add_ban(const char *name);
225 
226 
227 #endif
void std_connect_update_ping(net_player *p)
Definition: stand_gui.cpp:328
void std_debug_set_standalone_state_string(char *str)
void std_update_player_ping(net_player *p)
void std_reset_timestamps()
void std_pinfo_add_player_list_item(net_player *p)
Definition: stand_gui.cpp:1145
void std_connect_add_ip_string(char *string)
Definition: stand_gui.cpp:259
void std_gen_set_text(char *str, int field_num)
void std_pinfo_remove_player_list_item(net_player *p)
Definition: stand_gui.cpp:1161
int std_is_host_passwd()
GLclampf f
Definition: Glext.h:7097
void std_multi_setup_goal_tree()
void std_add_chat_text(const char *text, int player_index, int add_id)
void std_multi_set_standalone_missiontime(float mission_time)
int std_player_is_banned(const char *name)
void std_gs_add_player(net_player *p)
void std_gs_set_framerate(float f)
Definition: stand_gui.cpp:1405
void std_debug_clear_controls()
Definition: stand_gui.cpp:1593
void std_connect_handle_name_change()
Definition: stand_gui.cpp:407
void std_multi_set_standalone_mission_name(char *mission_name)
void std_gs_remove_player(net_player *p)
void std_multi_clear_controls()
Definition: stand_gui.cpp:834
void std_reset_standalone_gui()
void std_connect_handle_passwd_change()
Definition: stand_gui.cpp:438
void std_connect_set_gamename(char *name)
void std_multi_update_netgame_info_controls()
void std_init_standalone()
void std_destroy_gen_dialog()
int std_remove_player(net_player *p)
void std_tracker_login()
Definition: stand_gui.cpp:1794
void std_connect_clear_controls()
Definition: stand_gui.cpp:359
void std_init_os()
void std_tracker_notify_login_fail()
void std_deinit_standalone()
Definition: stand_gui.cpp:2426
void std_connect_kick_player()
Definition: stand_gui.cpp:307
void std_add_player(net_player *p)
void std_add_ban(const char *name)
GLuint const GLchar * name
Definition: Glext.h:5608
void std_gs_send_godstuff_message()
Definition: stand_gui.cpp:1382
int std_gen_is_active()
void std_multi_update_goals()
void std_configLoaded(multi_global_options *options)
void std_pinfo_clear_controls()
Definition: stand_gui.cpp:1193
void std_multi_add_goals()
void std_connect_set_host_connect_status()
void std_multi_standalone_reset_all()
GLfloat GLfloat p
Definition: Glext.h:8373
void std_pinfo_update_ping(net_player *p)
Definition: stand_gui.cpp:1175
void std_connect_set_ip_string(char *lookup, char *string)
Definition: stand_gui.cpp:288
void std_set_standalone_fps(float fps)
void std_do_gui_frame()
void std_mutate_sheet()
Definition: stand_gui.cpp:1865
void std_create_gen_dialog(char *title)
int std_connect_set_connect_count()
void std_connect_remove_ip_string(char *string)
Definition: stand_gui.cpp:269
void std_gs_clear_controls()
Definition: stand_gui.cpp:1415
void std_multi_set_framerate(float f)
Definition: stand_gui.cpp:824
int std_pinfo_maybe_update_player_info(net_player *p)
Definition: stand_gui.cpp:1134
void std_pinfo_display_player_info(net_player *p)
Definition: stand_gui.cpp:1079