home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / sources / 2608 / dstar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-23  |  1.0 KB  |  64 lines

  1. /*    @(#)dstar.h 1.1 92/05/28 SMI    */
  2. /*    from dstar.h 1.3 90/07/23    */
  3.  
  4. #ifndef DSTAR_H
  5. #define DSTAR_H
  6.  
  7.  
  8. #include <sys/time.h>
  9.  
  10.  
  11.  
  12. #ifndef    GRAPHICS_H
  13.  
  14. typedef struct {
  15.       float    x,y,z ;
  16.     } Pt3d ;
  17.  
  18. typedef float    Mat3d[4][4] ;
  19.  
  20. #endif
  21.  
  22.  
  23. typedef    enum {B_NIL, B_FLASH, B_WAIT} Blast_State ;
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. /*    *** GAME PARAMETERS ***        */
  31.  
  32. /****
  33.  *
  34.  * description of ship's position & orientation in 3-space.
  35.  *
  36.  * left-hand rule used throughout.
  37.  *
  38.  * game grid is 20,000 km in all 3 dimensions, ship's position is given
  39.  * as a 3-space location in km.  Ship's forward orientation
  40.  * is given as two 3-space unit vectors.  Velocity is a scalar (this
  41.  * may change)
  42.  *
  43.  * The ship's z-coordinate is looking straight along the nose, +x is to
  44.  * the right & +y is up
  45.  *
  46.  ****/
  47.  
  48.     char    Hostname[64] ;
  49.  
  50.     struct itimerval Main_Timer, Sleep_Timer ;
  51.  
  52.     struct timeval    Last_Time, Now ;
  53.     float    Dtime ;
  54.  
  55.     int    auto_pilot, auto_fire ;
  56.  
  57.     int    missiles_remaining ;
  58.     int    armed_missiles ;    /* count of missile armed & ready */
  59.  
  60.     int    debug_level ;
  61.  
  62.  
  63. #endif    DSTAR_H
  64.