]> icculus.org git repositories - taylor/freespace2.git/blob - include/multi_sw.h
embed standalone web in executable
[taylor/freespace2.git] / include / multi_sw.h
1 /*
2  * Copyright (C) Volition, Inc. 2005.  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  * $Logfile: /Freespace2/code/Network/multi_sw.h $
12  * $Revision: 7 $
13  * $Date: 9/13/99 11:30a $
14  * $Author: Dave $
15  *
16  * $Log: /Freespace2/code/Network/multi_sw.h $  
17  * 
18  * 7     9/13/99 11:30a Dave
19  * Added checkboxes and functionality for disabling PXO banners as well as
20  * disabling d3d zbuffer biasing.
21  * 
22  * 6     8/25/99 4:38p Dave
23  * Updated PXO stuff. Make squad war report stuff much more nicely.
24  * 
25  * 5     6/07/99 9:51p Dave
26  * Consolidated all multiplayer ports into one.
27  * 
28  * 4     2/17/99 2:11p Dave
29  * First full run of squad war. All freespace and tracker side stuff
30  * works.
31  * 
32  * 3     2/12/99 6:16p Dave
33  * Pre-mission Squad War code is 95% done.
34  * 
35  * 2     2/11/99 3:08p Dave
36  * PXO refresh button. Very preliminary squad war support.
37  *  
38  *  
39  * $NoKeywords: $
40  */
41
42 #ifndef __FREESPACE2_SQUAD_WAR_HEADER_FILE
43 #define __FREESPACE2_SQUAD_WAR_HEADER_FILE
44
45 #include "ptrack.h"
46
47 // ------------------------------------------------------------------------------------
48 // MULTIPLAYER SQUAD WAR DEFINES/VARS
49 //
50
51 // the min # of players required from each squad for the mission to be valid
52 #define MULTI_SW_MIN_PLAYERS                                    1
53
54 // set on the host in response to a standalone sw query, -1 == waiting, 0 == fail, 1 == success
55 extern int Multi_sw_std_query;
56
57 // match code
58 #define MATCH_CODE_LEN          34                      // from ptrack.h
59 extern char Multi_sw_match_code[MATCH_CODE_LEN];
60
61 // reply from a standalone on a bad response
62 extern char Multi_sw_bad_reply[MAX_SQUAD_RESPONSE_LEN+1];
63
64 // ------------------------------------------------------------------------------------
65 // MULTIPLAYER SQUAD WAR FUNCTIONS
66 //
67
68 // call before loading level - mission sync phase. only the server need do this
69 void multi_sw_level_init();
70
71 // determine if everything is ok to move forward for a squad war match
72 int multi_sw_ok_to_commit();
73
74 // query PXO on the standalone
75 void multi_sw_std_query(char *match_code);
76
77 // call to update everything on the tracker
78 void multi_sw_report(int stats_saved);
79
80 #endif
81