mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
I've tested this through compiling and through hand checking. Normalises line endings in ALL files to \n.
46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
/*
|
|
* Copyright (C) Volition, Inc. 1999. All rights reserved.
|
|
*
|
|
* All source code herein is the property of Volition, Inc. You may not sell
|
|
* or otherwise commercially exploit the source or things you created based on the
|
|
* source.
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _OBSERVER_HEADER_FILE
|
|
#define _OBSERVER_HEADER_FILE
|
|
|
|
struct object;
|
|
struct vec3d;
|
|
struct matrix;
|
|
|
|
#define OBS_MAX_VEL_X (85.0f) // side to side
|
|
#define OBS_MAX_VEL_Y (85.0f) // side to side
|
|
#define OBS_MAX_VEL_Z (85.0f) // forwards and backwards
|
|
|
|
|
|
#define OBS_FLAG_USED (1<<1)
|
|
|
|
typedef struct observer {
|
|
int objnum;
|
|
|
|
int target_objnum; // not used as of yet
|
|
int flags;
|
|
} observer;
|
|
|
|
#define MAX_OBSERVER_OBS 17
|
|
extern observer Observers[MAX_OBSERVER_OBS];
|
|
|
|
extern int Num_observer_obs;
|
|
|
|
void observer_init();
|
|
int observer_create(matrix *orient, vec3d *pos); // returns objnum
|
|
void observer_delete(object *obj);
|
|
|
|
// get the eye position and orientation for the passed observer object
|
|
void observer_get_eye(vec3d *eye_pos, matrix *eye_orient, object *obj);
|
|
|
|
#endif
|