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