]> icculus.org git repositories - taylor/freespace2.git/blob - include/observer.h
Initial revision
[taylor/freespace2.git] / include / observer.h
1 /*
2  * $Logfile: /Freespace2/code/Observer/Observer.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * $NoKeywords: $
8  */
9
10 #ifndef _OBSERVER_HEADER_FILE
11 #define _OBSERVER_HEADER_FILE
12
13 #include "object.h"
14 #include "vecmat.h"
15
16 #define OBS_MAX_VEL_X     (85.0f) // side to side
17 #define OBS_MAX_VEL_Y     (85.0f) // side to side
18 #define OBS_MAX_VEL_Z     (85.0f) // forwards and backwards
19
20
21 #define OBS_FLAG_USED   (1<<1)
22
23 typedef struct observer {
24         int objnum;
25
26         int target_objnum;    // not used as of yet
27         int flags;
28 } observer;
29
30 #define MAX_OBSERVER_OBS 17
31 extern observer Observers[MAX_OBSERVER_OBS];
32
33 extern int Num_observer_obs;
34
35 void observer_init();
36 int observer_create(matrix *orient, vector *pos);  // returns objnum
37 void observer_delete(object *obj);
38
39 // get the eye position and orientation for the passed observer object
40 void observer_get_eye(vector *eye_pos, matrix *eye_orient, object *obj);
41
42 #endif
43