FS2_Open
Open source remastering of the Freespace 2 engine
multi_campaign.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 #ifndef _MULTIPLAYER_CAMPAIGN_HEADER_FILE
13 #define _MULTIPLAYER_CAMPAIGN_HEADER_FILE
14 
15 #include "globalincs/pstypes.h"
16 
17 // ------------------------------------------------------------------------------------
18 // MULTIPLAYER CAMPAIGN DEFINES/VARS
19 //
20 struct net_player;
21 struct header;
22 
23 // ------------------------------------------------------------------------------------
24 // MULTIPLAYER CAMPAIGN FUNCTIONS
25 //
26 
27 // load a new campaign file or notify the standalone if we're not the server
28 void multi_campaign_start(char *filename);
29 
30 // client-side start of a campaign
32 
33 // move everything and eveyrone into the next mission state
35 
36 // flush all important data between missions
38 
39 // call in the debriefing stage to evaluate what we should be doing in regards to the campaign
40 // if player_status == 0, nothing should be done
41 // == 1, players want to continue to the next mission
42 // == 2, players want to repeat the previous mission
43 void multi_campaign_do_debrief(int player_status);
44 
45 // display the done popup
47 
48 // evaluate post mission goal stuff for the campaign and send all relevant stuff to clients
50 
51 
52 // ------------------------------------------------------------------------------------
53 // MULTIPLAYER CAMPAIGN PACKET HANDLERS
54 //
55 
56 // process a campaign update packet
58 
59 // send a "campaign finished" packet
61 
62 // send a campaign pool status packet
64 
65 // send a campaign debrief update packet
67 
68 // send a "start campaign" packet
69 void multi_campaign_send_start(net_player *pl = /*NULL*/ 0);
70 
71 // campaign information for ingame joiners
74 
75 #endif
void multi_campaign_done_popup()
void multi_campaign_start(char *filename)
void multi_campaign_send_ingame_start(net_player *pl)
void multi_campaign_eval_debrief()
void multi_campaign_next_mission()
void multi_campaign_send_pool_status()
void multi_campaign_process_update(ubyte *data, header *hinfo)
char * filename
void multi_campaign_process_ingame_start(ubyte *data, header *hinfo)
unsigned char ubyte
Definition: pstypes.h:62
void multi_campaign_send_start(net_player *pl=0)
Definition: multi.h:385
void multi_campaign_client_start()
GLenum GLsizei GLenum GLenum const GLvoid * data
Definition: Gl.h:1509
void multi_campaign_send_debrief_info()
void multi_campaign_flush_data()
void multi_campaign_do_debrief(int player_status)
void multi_campaign_send_done()