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