]> icculus.org git repositories - taylor/freespace2.git/blob - include/multi_respawn.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / multi_respawn.h
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Network/multi_respawn.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * $Log$
16  * Revision 1.2  2002/06/09 04:41:14  relnev
17  * added copyright header
18  *
19  * Revision 1.1.1.1  2002/05/03 03:28:12  root
20  * Initial import.
21  * 
22  * 
23  * 4     8/06/99 2:44a Dave
24  * Make sure dead players who leave respawn AI.
25  * 
26  * 3     3/01/99 7:39p Dave
27  * Added prioritizing ship respawns. Also fixed respawns in TvT so teams
28  * don't mix respawn points.
29  * 
30  * 2     10/07/98 10:53a Dave
31  * Initial checkin.
32  * 
33  * 1     10/07/98 10:50a Dave
34  * 
35  * 3     4/23/98 1:49a Allender
36  * major rearm/repair fixes for multiplayer.  Fixed respawning of AI ships
37  * to not respawn until 5 seconds after they die.  Send escort information
38  * to ingame joiners
39  * 
40  * 2     3/11/98 10:22p Dave
41  * Laid groundwork for new observer HUD. Split up multi respawning into
42  * its own module.
43  * 
44  * 1     3/11/98 5:07p Dave
45  *  
46  * $NoKeywords: $
47  */
48
49 #ifndef _MULTIPLAYER_RESPAWN_HEADER_FILE
50 #define _MULTIPLAYER_RESPAWN_HEADER_FILE
51
52 // ---------------------------------------------------------------------------------------
53 // MULTI RESPAWN DEFINES/VARS
54 //
55
56 struct object;
57 struct header;
58
59
60 // ---------------------------------------------------------------------------------------
61 // MULTI RESPAWN FUNCTIONS
62 //
63
64 // check to see if a net player needs to be respawned
65 void multi_respawn_check(object *objp);
66
67 // respawn normally
68 void multi_respawn_normal();
69
70 // respawn as an observer
71 void multi_respawn_observer();
72
73 // server should check to see if any respawned players have run out of their invulnerability
74 void multi_respawn_handle_invul_players();
75
76 // build a list of base respawn points on the server, for this level
77 void multi_respawn_build_points();
78
79 void multi_respawn_init();
80 void multi_respawn_check_ai();
81
82 // notify of a player leaving
83 void multi_respawn_player_leave(net_player *pl);
84
85 // ---------------------------------------------------------------------------------------
86 // MULTI RESPAWN PACKET HANDLERS
87 //
88
89 void multi_respawn_process_packet(ubyte *data, header *hinfo);
90
91 #endif
92