/*****************************************************************************
Name            :   craft.h 
C Author        :   Stel Michael

Copyright       :   1992 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     :   Prototypes for craft.cpp
Program Type    :   Microsoft Visual C++ V2
*****************************************************************************/

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

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

/* defines for craft */

#define MAXELEV_ANG     (PI/3.0f)
#define MAXROLL_ANG     (PI/3.0f)
#define MINVEL          0.0f
#define MAXVEL          36.0f

#define DAMPING_RATE    0.02f //0.02f

#define DAMP_ANG        (PI/96.0f)

#define SPEED_INC       0.8f
#define SPEED_LOSS    	0.4f
#define BRAKE_LOSS		0.6f                           
                           
#define ALTLOSS         0.1f
#define MINHEIGHT       20.0f
#define MAXHEIGHT       600.0f
#define ARENASIZE      	32000.0f

#define GROUNDLEVEL     20.0f

/* simple object structure used by craft */

typedef struct  {   
	int				group; 
	int				group2;
	int             id; 
	int				id2;
	int             status;
	float pos[3];
	float ori[3];
	float velocity;
}       SimpObj;

extern CKEYWORD SimpObj *Create_Object(float   pos[3],float ori[3]);
extern CKEYWORD  void Move_Craft(SimpObj *craft,float x_pos,float y_pos,int lpress);










