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

  1. /*    @(#)parameters.h 1.2 92/05/28 SMI    */
  2. /*    from parameters.h 1.3 90/07/23 SMI    */
  3.  
  4. /*
  5.  * This file contains compilation parameters for the game
  6.  */
  7.  
  8.  
  9. #ifndef DSTAR_PARAMETERS
  10. #define    DSTAR_PARAMETERS
  11.  
  12.  
  13. #define    MAX_PLAYERS    20
  14.  
  15.  
  16.  
  17. #define    NAMELEN    32        /* player name@host maximum length */
  18. #define    MAX_OBJECTS    20    /* max # objects game can handle */
  19. #define    MAX_DESCRIPTIONS 20    /* max # object types */
  20. #define    MAX_MISSILES    8    /* max # of missiles player can handle*/
  21. #define    MISSILES_PER_LIFE 10    /* limited number of missiles */
  22.  
  23.  
  24.  
  25.  
  26.  
  27. /*
  28.  * these constants increment your score after you kill someone or are killed
  29.  * respectively
  30.  */
  31.  
  32. #define    SCORE_KILL    10
  33. #define    SCORE_KILLED    5
  34.  
  35.  
  36.  
  37. /* laser beam limit
  38.  */
  39.  
  40. #define    LASER_RANGE    50.0        /* distance beam is effective */
  41. #define    LASER_THRESH    2.0        /* how close it has to come */
  42.  
  43.  
  44.     /* note: given that the view angle is +/- 45 degrees, we want
  45.        the delta vector to accurately reflect the place the player
  46.        is pointing.  Therefore, we scale by 2*tan(45) = 2.  Change
  47.        this if the view angle changes */
  48.  
  49. #define    VIEWSCALE    2.0
  50.  
  51.  
  52. /* radar limits
  53.  */
  54.  
  55. #define    RADAR_RANGE    3000.0        /* distance you can lock up within */
  56. #define    RADAR_ANGLE    15.0        /* +/- radar detection angle    */
  57. #define    RADAR_TAN    0.2679        /* tan(RADAR_ANGLE)        */
  58.  
  59.  
  60.  
  61. /* autopilot limits
  62.  */
  63.  
  64. #define    AUTO_RANGE    3000.0        /* distance you can lock up within */
  65. #define    MAX_TURN    0.3        /* max Rate Of Turn        */
  66. #define    MAX_TURN_ERROR    0.001        /* max R.O.T. error before kicking in */
  67. #define    MAX_SLEW    0.3        /* maximum R.O.T. slew rate    */
  68. #define    SCAN_TURN    0.1        /* R.O.T. while searching    */
  69. #define    FEEDBACK_GAIN    2.0        /* controls how tightly we track */
  70. #define    ROLL_RATE    0.3        /* how fast ship rolls        */
  71.  
  72.  
  73. /*
  74.  * time interval for display updates
  75.  */
  76.  
  77. #define    DISPLAY_INTERVAL    50000        /* microseconds */
  78. #define    FLASH_INTERVAL        500000        /* how long screen flashes */
  79. #define    DEATH_INTERVAL        5        /* how long you stay dead */
  80. #define    POLL_INTERVAL        10        /* how long between polls */
  81. #define    SLEEP_INTERVAL        10        /* time between updates */
  82.  
  83.  
  84. /*
  85.  * default speed
  86.  */
  87.  
  88. #define    DEFAULT_SPEED    25.0
  89.  
  90.  
  91. /*
  92.  * missile parameters
  93.  */
  94. #define    MISSILE_SPEED    (DEFAULT_SPEED*3.0)
  95. #define    MISSILE_LIFE    5.0        /* lifetime in seconds */
  96. #define    MISSILE_REGEN    0.6        /* lifetime in seconds */
  97. #define MISSILE_RANGE    3000.0        /* locking range */
  98. #define    MISSILE_TURN    1.0        /* maximum rate of turn */
  99. #define    MISSILE_SLEW    1.0        /* r.o.t. slew rate */
  100. #define    MISSILE_THRESH    5.0        /* how close it has to come */
  101. #define    MISSILE_GAIN    6.0        /* controls how tightly we track */
  102.  
  103.  
  104. #endif    DSTAR_PARAMETERS
  105.