]> icculus.org git repositories - taylor/freespace2.git/blob - include/multi_observer.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / multi_observer.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_observer.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * $Log$
16  * Revision 1.3  2002/06/09 04:41:14  relnev
17  * added copyright header
18  *
19  * Revision 1.2  2002/05/27 00:40:47  theoddone33
20  * Fix net_addr vs net_addr_t
21  *
22  * Revision 1.1.1.1  2002/05/03 03:28:12  root
23  * Initial import.
24  *  
25  * 
26  * 3     11/05/98 5:55p Dave
27  * Big pass at reducing #includes
28  * 
29  * 2     10/07/98 10:53a Dave
30  * Initial checkin.
31  * 
32  * 1     10/07/98 10:50a Dave
33  * 
34  * 3     4/18/98 5:00p Dave
35  * Put in observer zoom key. Made mission sync screen more informative.
36  * 
37  * 2     3/13/98 2:51p Dave
38  * Put in support for observers to join ingame.
39  * 
40  * 1     3/12/98 5:44p Dave
41  *  
42  * $NoKeywords: $
43  */
44
45 #ifndef _MULTI_OBSERVER_HEADER_FILE
46 #define _MULTI_OBSERVER_HEADER_FILE
47
48 // ---------------------------------------------------------------------------------------
49 // MULTI OBSERVER DEFINES/VARS
50 //
51
52 struct player;
53 struct net_player; 
54
55 // ---------------------------------------------------------------------------------------
56 // MULTI OBSERVER FUNCTIONS
57 //
58
59 // create a _permanent_ observer player 
60 int multi_obs_create_player(int player_num,char *name,net_addr_t *addr,player *pl);
61
62 // create an explicit observer object and assign it to the passed player
63 void multi_obs_create_observer(net_player *pl);
64
65 // create observer object locally, and additionally, setup some other information
66 // ( client-side equivalent of multi_obs_create_observer() )
67 void multi_obs_create_observer_client();
68
69 // create objects for all known observers in the game at level start
70 // call this before entering a mission
71 // this implies for the local player in the case of a client or for _all_ players in the case of a server
72 void multi_obs_level_init();
73
74 // if i'm an observer, zoom to near my targted object (if any)
75 void multi_obs_zoom_to_target();
76
77 #endif
78