FS2_Open
Open source remastering of the Freespace 2 engine
multi_pause.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 
13 #ifndef _MULTI_PAUSE_HEADER_FILE
14 #define _MULTI_PAUSE_HEADER_FILE
15 
16 // ----------------------------------------------------------------------------------
17 // PAUSE DEFINES/VARS
18 //
19 
20 class UI_WINDOW;
21 struct net_player;
22 
23 // state of the game (paused or not) on _my_ machine. Obviously this is important for the server
24 // call multi_pause_reset() to reinitialize
25 extern int Multi_pause_status;
26 
27 // who paused the game
29 
30 
31 // ----------------------------------------------------------------------------------
32 // PAUSE FUNCTIONS
33 //
34 
35 // re-initializes the pause system. call before entering the mission to reset
36 void multi_pause_reset();
37 
38 // send a request to pause or unpause a game (all players should use this function)
39 void multi_pause_request(int pause);
40 
41 // (client) call when receiving a packet indicating we should pause
42 void multi_pause_pause();
43 
44 // (client) call when receiving a packet indicating we should unpause
45 void multi_pause_unpause();
46 
47 // (server) evaluate a pause request from the given player (should call for himself as well)
48 void multi_pause_server_eval_request(net_player *pl, int pause);
49 
50 // if we still want to eat keys
52 
53 
54 // ----------------------------------------------------------------------------------
55 // PAUSE UI FUNCTIONS
56 //
57 
58 // initialize multi pause screen
59 void multi_pause_init();
60 
61 // do frame for the multi pause screen
62 void multi_pause_do();
63 
64 // close the multi pause screen
65 void multi_pause_close(int end_mission);
66 
67 
68 #endif
void multi_pause_reset()
void multi_pause_init()
int Multi_pause_status
Definition: multi_pause.cpp:38
void multi_pause_close(int end_mission)
void multi_pause_do()
void multi_pause_request(int pause)
Definition: ui.h:584
net_player * Multi_pause_pauser
Definition: multi_pause.cpp:41
void multi_pause_pause()
void multi_pause_unpause()
void multi_pause_server_eval_request(net_player *pl, int pause)
int multi_pause_eat_keys()