12 #ifndef _MULTI_ENDGAME_HEADER_FILE
13 #define _MULTI_ENDGAME_HEADER_FILE
26 #define PROMPT_NONE 0 // don't prompt anyone when quitting (multi_quit_game)
27 #define PROMPT_HOST 1 // prompt the host when quitting (multi_quit_game)
28 #define PROMPT_CLIENT 2 // prompt the client when quitting (multi_quit_game)
29 #define PROMPT_ALL 3 // prompt any players when quitting (multi_quit_game)
32 #define MULTI_END_NOTIFY_NONE (-1) // no notification code
33 #define MULTI_END_NOTIFY_KICKED 1 // player was kicked
34 #define MULTI_END_NOTIFY_SERVER_LEFT 2 // server has left the game
35 #define MULTI_END_NOTIFY_FILE_REJECTED 3 // mission file was rejected by the server
36 #define MULTI_END_NOTIFY_EARLY_END 4 // game ended while the ingame joiner was joining
37 #define MULTI_END_NOTIFY_INGAME_TIMEOUT 5 // waited too long in the ship select screen
38 #define MULTI_END_NOTIFY_KICKED_BAD_XFER 6 // kicked because file xfer failed
39 #define MULTI_END_NOTIFY_KICKED_CANT_XFER 7 // kicked because can't xfer a builtin mission
40 #define MULTI_END_NOTIFY_KICKED_INGAME_ENDED 8 // kicked because was ingame joining in an ending game
43 #define MULTI_END_ERROR_NONE (-1) // no error code
44 #define MULTI_END_ERROR_CONTACT_LOST 1 // contact with the server has been lost
45 #define MULTI_END_ERROR_CONNECT_FAIL 2 // failed to connect to the server
46 #define MULTI_END_ERROR_LOAD_FAIL 3 // failed to load the mission properly
47 #define MULTI_END_ERROR_INGAME_SHIP 4 // unable to create ingame join player ship
48 #define MULTI_END_ERROR_INGAME_BOGUS 5 // received bogus data on ingame join
49 #define MULTI_END_ERROR_STRANS_FAIL 6 // server transfer failed (obsolete)
50 #define MULTI_END_ERROR_SHIP_ASSIGN 7 // server had problems assigning players to ships
51 #define MULTI_END_ERROR_HOST_LEFT 8 // host has left a standalone game
52 #define MULTI_END_ERROR_XFER_FAIL 9 // mission file xfer failed on the client
53 #define MULTI_END_ERROR_WAVE_COUNT 10 // illegal data found in mission when parsing
54 #define MULTI_END_ERROR_TEAM0_EMPTY 11 // all of team 0 has left
55 #define MULTI_END_ERROR_TEAM1_EMPTY 12 // all of team 1 has left
56 #define MULTI_END_ERROR_CAPTAIN_LEFT 13 // captain of a team has left while not ingame
#define MULTI_END_ERROR_NONE
void multi_endgame_process()
int multi_quit_game(int prompt, int notify_code=MULTI_END_NOTIFY_NONE, int err_code=MULTI_END_ERROR_NONE, int wsa_error=-1)
void multi_endgame_init()
#define MULTI_END_NOTIFY_NONE
int multi_endgame_ending()