/*****************************************************************************
Name            :   missile.h
C Author        :   Stel Michael
Created			:   7 July 1993

Copyright       :   1993 by VideoLogic Limited. All rights reserved.
		    No part of this software, either material or conceptual
		    may be copied or distributed, transmitted, transcribed,
		    stored in a retrieval system or translated into any
		    human or computer language in any form by any means,
		    electronic, mechanical, manual or other-wise, or
		    disclosed to third parties without the express written
		    permission of VideoLogic Limited, HomePark Estate,
		    King's Langley, Hertfordshire, WD4 8LZ, U.K.

Description     :   Header for missile.cpp
Program Type    :   Microsoft Visual C++ V2
*****************************************************************************/


#ifdef Cplusplus 
#define CKEYWORD "C"
#else
#define CKEYWORD
#endif

#define PI      3.14159f
#define TWOPI   (2.0f * PI)

/* defines for missile */

#define FIRE_INT        5
#define MISSILE_VEL     12.0f
#define MAXMISSILES     20
#define MISSILE_LIFE    50


typedef struct mis_obj {
	int             owner;
	int             id;
	int             group;
	int             status;
	float         	pos[3];
	float         	ori[3];
	float         	velocity;
	int             lifetime;
	struct mis_obj  *next;
	struct mis_obj  *prev;
}       MissileObj;


extern CKEYWORD void Process_Missiles(int rpress,ControlledObject *craft);   
extern CKEYWORD void Create_Missile(float pos[3],float  ori[3],float vel,int col);
extern CKEYWORD void Move_Missiles(MissileObj *miss);
extern CKEYWORD void Delete_Missiles(MissileObj *miss);
extern CKEYWORD void add_missile();
















































