home *** CD-ROM | disk | FTP | other *** search
- /* @(#)parameters.h 1.2 92/05/28 SMI */
- /* from parameters.h 1.3 90/07/23 SMI */
-
- /*
- * This file contains compilation parameters for the game
- */
-
-
- #ifndef DSTAR_PARAMETERS
- #define DSTAR_PARAMETERS
-
-
- #define MAX_PLAYERS 20
-
-
-
- #define NAMELEN 32 /* player name@host maximum length */
- #define MAX_OBJECTS 20 /* max # objects game can handle */
- #define MAX_DESCRIPTIONS 20 /* max # object types */
- #define MAX_MISSILES 8 /* max # of missiles player can handle*/
- #define MISSILES_PER_LIFE 10 /* limited number of missiles */
-
-
-
-
-
- /*
- * these constants increment your score after you kill someone or are killed
- * respectively
- */
-
- #define SCORE_KILL 10
- #define SCORE_KILLED 5
-
-
-
- /* laser beam limit
- */
-
- #define LASER_RANGE 50.0 /* distance beam is effective */
- #define LASER_THRESH 2.0 /* how close it has to come */
-
-
- /* note: given that the view angle is +/- 45 degrees, we want
- the delta vector to accurately reflect the place the player
- is pointing. Therefore, we scale by 2*tan(45) = 2. Change
- this if the view angle changes */
-
- #define VIEWSCALE 2.0
-
-
- /* radar limits
- */
-
- #define RADAR_RANGE 3000.0 /* distance you can lock up within */
- #define RADAR_ANGLE 15.0 /* +/- radar detection angle */
- #define RADAR_TAN 0.2679 /* tan(RADAR_ANGLE) */
-
-
-
- /* autopilot limits
- */
-
- #define AUTO_RANGE 3000.0 /* distance you can lock up within */
- #define MAX_TURN 0.3 /* max Rate Of Turn */
- #define MAX_TURN_ERROR 0.001 /* max R.O.T. error before kicking in */
- #define MAX_SLEW 0.3 /* maximum R.O.T. slew rate */
- #define SCAN_TURN 0.1 /* R.O.T. while searching */
- #define FEEDBACK_GAIN 2.0 /* controls how tightly we track */
- #define ROLL_RATE 0.3 /* how fast ship rolls */
-
-
- /*
- * time interval for display updates
- */
-
- #define DISPLAY_INTERVAL 50000 /* microseconds */
- #define FLASH_INTERVAL 500000 /* how long screen flashes */
- #define DEATH_INTERVAL 5 /* how long you stay dead */
- #define POLL_INTERVAL 10 /* how long between polls */
- #define SLEEP_INTERVAL 10 /* time between updates */
-
-
- /*
- * default speed
- */
-
- #define DEFAULT_SPEED 25.0
-
-
- /*
- * missile parameters
- */
- #define MISSILE_SPEED (DEFAULT_SPEED*3.0)
- #define MISSILE_LIFE 5.0 /* lifetime in seconds */
- #define MISSILE_REGEN 0.6 /* lifetime in seconds */
- #define MISSILE_RANGE 3000.0 /* locking range */
- #define MISSILE_TURN 1.0 /* maximum rate of turn */
- #define MISSILE_SLEW 1.0 /* r.o.t. slew rate */
- #define MISSILE_THRESH 5.0 /* how close it has to come */
- #define MISSILE_GAIN 6.0 /* controls how tightly we track */
-
-
- #endif DSTAR_PARAMETERS
-