/* Change Log
    
   Created:  9-20-93 by Michael Kantner
   Added:    9-24-93 WALL_BOUNCE and GOAL_CLEAR
   Added:    9-27-93 NEWGAME_RESET
   Added:    9-29-93 NO_BRUTALITY
   Added:   10-06-93 PV_* Generic Voting Stuff (moved to puckmove.c)
   Added:   10-06-93 ALLOW_EJECT
   Added:   10-07-93 SHORT_GAME
   Added:   10-12-93 ANNOUNCER
   Added:   10-29-93 OFFSIDE

   Change:   1-??-94 Modified for server version 2.5.  Commands and
                     voting moved to separate file.
   Change:   6-20-94 Moved SHORT_GAME to a votable feature.
   Change:   6-20-94 Added NUMSKATERS definition.
   Added:    6-20-94 Re-added ALLOW_EJECT, may conflict with server

   Added:    9-20-94 Added HOWOFTEN, and changed PERSEC.
   Added:    5-30-95 SHOT_DESC for added shot descriptions.
   Added:    5-14-97 LIGHT_PLANETS to have planets indicate score
*/

/* puckdefs.h

   This file contains many of the defines needed for Netrek Hockey
   and not for anything else.
*/


/* Game Control Parameters */
/*#define SOCCER_SHOOT            /*define for soccer-style shooting */
/*#define HAVE_GOALIE             /*define to have goalie ships */
/*#define GOAL_CLEAR              /*define to keep players outside the goals*/
/*#define NO_BRUTALITY            /*define to make peaceful when goal scores*/
/*#define OFFSIDE                 /*define to have hockey offside rules*/

#undef NO_BRUTALITY               /*Must also be undefined, if needed */
#define ANNOUNCER                 /*define for more loquacious commentary*/
#define NEWGAME_RESET             /*define to have newgame reset stats*/
#define WALL_BOUNCE               /*define to keep players in the rink*/
#define ALLOW_EJECT
#define SHOT_DESC		  /*define to have on goal descriptions.  */
#define LIGHT_PLANETS             /*define to have planets show the score*/

#define NUMSKATERS	12

/* Some "computer speed" definitions */
#define HOWOFTEN 1                       /*Robot moves every HOWOFTEN cycles*/
#define PERSEC (1000000/UPDATE/HOWOFTEN) /* # of robo calls per second*/

#define TELEPORT_DELAY 5        /*Time between goal score and teleport home*/


/* Rink Definitions */
#define RINK_TOP 0
#define RINK_BOTTOM GWIDTH
#define TENTH ((RINK_BOTTOM - RINK_TOP)/10)
#define R_MID ((RINK_BOTTOM - RINK_TOP)/2) /* center (red) line */
#define RINK_LENGTH (RINK_BOTTOM - RINK_TOP)

#define RINK_WIDTH (GWIDTH*2/3)
#define G_MID (GWIDTH/2)	/* center of goal */
#define RINK_LEFT (G_MID-(RINK_WIDTH/2))
#define RINK_RIGHT (G_MID+(RINK_WIDTH/2))

#define G_LFT (R_MID-TENTH)	/* left edge of goal */
#define G_RGT (R_MID+TENTH)	/* right edge of goal */
#define RED_1 (RINK_LEFT + (1*RINK_WIDTH/5))
#define RED_2 (RINK_LEFT + (2*RINK_WIDTH/5))
#define RED_3 (RINK_LEFT + (3*RINK_WIDTH/5))
#define RED_4 (RINK_LEFT + (4*RINK_WIDTH/5))

#define ORI_G (RINK_BOTTOM - /*2* */TENTH) /* Ori goal line */
#define ORI_E (RINK_BOTTOM -   TENTH/2) /* end of Ori goal */
#define ORI_B (RINK_BOTTOM - (RINK_LENGTH/3)) /* Ori blue line */
#define KLI_G (RINK_TOP    +/* 2* */ TENTH) /* Kli goal line */
#define KLI_E (RINK_TOP    +   TENTH/2) /* end of Kli goal */
#define KLI_B (RINK_TOP    + (RINK_LENGTH/3)) /* Kli blue line */



/* Some global puck variable definitions */
extern struct player *anncer;
extern char *roboname;
