2 * Copyright (C) Volition, Inc. 2005. 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 the
11 * $Logfile: /Freespace2/code/Network/multi_sw.h $
13 * $Date: 9/13/99 11:30a $
16 * $Log: /Freespace2/code/Network/multi_sw.h $
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.
22 * 6 8/25/99 4:38p Dave
23 * Updated PXO stuff. Make squad war report stuff much more nicely.
25 * 5 6/07/99 9:51p Dave
26 * Consolidated all multiplayer ports into one.
28 * 4 2/17/99 2:11p Dave
29 * First full run of squad war. All freespace and tracker side stuff
32 * 3 2/12/99 6:16p Dave
33 * Pre-mission Squad War code is 95% done.
35 * 2 2/11/99 3:08p Dave
36 * PXO refresh button. Very preliminary squad war support.
42 #ifndef __FREESPACE2_SQUAD_WAR_HEADER_FILE
43 #define __FREESPACE2_SQUAD_WAR_HEADER_FILE
47 // ------------------------------------------------------------------------------------
48 // MULTIPLAYER SQUAD WAR DEFINES/VARS
51 // the min # of players required from each squad for the mission to be valid
52 #define MULTI_SW_MIN_PLAYERS 1
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;
58 #define MATCH_CODE_LEN 34 // from ptrack.h
59 extern char Multi_sw_match_code[MATCH_CODE_LEN];
61 // reply from a standalone on a bad response
62 extern char Multi_sw_bad_reply[MAX_SQUAD_RESPONSE_LEN+1];
64 // ------------------------------------------------------------------------------------
65 // MULTIPLAYER SQUAD WAR FUNCTIONS
68 // call before loading level - mission sync phase. only the server need do this
69 void multi_sw_level_init();
71 // determine if everything is ok to move forward for a squad war match
72 int multi_sw_ok_to_commit();
74 // query PXO on the standalone
75 void multi_sw_std_query(char *match_code);
77 // call to update everything on the tracker
78 void multi_sw_report(int stats_saved);