2 * $Logfile: /Freespace2/code/Network/multi_pause.h $
8 * Revision 1.1 2002/05/03 03:28:12 root
12 * 3 10/13/98 9:29a Dave
13 * Started neatening up freespace.h. Many variables renamed and
14 * reorganized. Added AlphaColors.[h,cpp]
16 * 2 10/07/98 10:53a Dave
19 * 1 10/07/98 10:50a Dave
21 * 2 5/07/98 6:26p Dave
22 * Fix strange boundary conditions which arise when players die/respawn
23 * while the game is being ended. Spiff up the chatbox doskey thing a bit.
25 * 1 4/14/98 12:18p Dave
32 #ifndef _MULTI_PAUSE_HEADER_FILE
33 #define _MULTI_PAUSE_HEADER_FILE
35 // ----------------------------------------------------------------------------------
42 // state of the game (paused or not) on _my_ machine. Obviously this is important for the server
43 // call multi_pause_reset() to reinitialize
44 extern int Multi_pause_status;
46 // who paused the game
47 extern net_player *Multi_pause_pauser;
50 // ----------------------------------------------------------------------------------
54 // re-initializes the pause system. call before entering the mission to reset
55 void multi_pause_reset();
57 // send a request to pause or unpause a game (all players should use this function)
58 void multi_pause_request(int pause);
60 // (client) call when receiving a packet indicating we should pause
61 void multi_pause_pause();
63 // (client) call when receiving a packet indicating we should unpause
64 void multi_pause_unpause();
66 // (server) evaluate a pause request from the given player (should call for himself as well)
67 void multi_pause_server_eval_request(net_player *pl, int pause);
69 // if we still want to eat keys
70 int multi_pause_eat_keys();
73 // ----------------------------------------------------------------------------------
77 // initialize multi pause screen
78 void multi_pause_init(UI_WINDOW *Ui_window);
80 // do frame for the multi pause screen
81 void multi_pause_do();
83 // close the multi pause screen
84 void multi_pause_close();