2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/Network/multi_pause.h $
16 * Revision 1.2 2002/06/09 04:41:14 relnev
17 * added copyright header
19 * Revision 1.1.1.1 2002/05/03 03:28:12 root
23 * 3 10/13/98 9:29a Dave
24 * Started neatening up freespace.h. Many variables renamed and
25 * reorganized. Added AlphaColors.[h,cpp]
27 * 2 10/07/98 10:53a Dave
30 * 1 10/07/98 10:50a Dave
32 * 2 5/07/98 6:26p Dave
33 * Fix strange boundary conditions which arise when players die/respawn
34 * while the game is being ended. Spiff up the chatbox doskey thing a bit.
36 * 1 4/14/98 12:18p Dave
43 #ifndef _MULTI_PAUSE_HEADER_FILE
44 #define _MULTI_PAUSE_HEADER_FILE
46 // ----------------------------------------------------------------------------------
53 // state of the game (paused or not) on _my_ machine. Obviously this is important for the server
54 // call multi_pause_reset() to reinitialize
55 extern int Multi_pause_status;
57 // who paused the game
58 extern net_player *Multi_pause_pauser;
61 // ----------------------------------------------------------------------------------
65 // re-initializes the pause system. call before entering the mission to reset
66 void multi_pause_reset();
68 // send a request to pause or unpause a game (all players should use this function)
69 void multi_pause_request(int pause);
71 // (client) call when receiving a packet indicating we should pause
72 void multi_pause_pause();
74 // (client) call when receiving a packet indicating we should unpause
75 void multi_pause_unpause();
77 // (server) evaluate a pause request from the given player (should call for himself as well)
78 void multi_pause_server_eval_request(net_player *pl, int pause);
80 // if we still want to eat keys
81 int multi_pause_eat_keys();
84 // ----------------------------------------------------------------------------------
88 // initialize multi pause screen
89 void multi_pause_init(UI_WINDOW *Ui_window);
91 // do frame for the multi pause screen
92 void multi_pause_do();
94 // close the multi pause screen
95 void multi_pause_close();