home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / y / bsdgames / bsd-game.000 / bsd-game / games / hunt / extern.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-21  |  1.8 KB  |  65 lines

  1. /*
  2.  *  Hunt
  3.  *  Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
  4.  *  San Francisco, California
  5.  */
  6.  
  7. # include    "hunt.h"
  8.  
  9. # ifdef MONITOR
  10. FLAG    Am_monitor = FALSE;        /* current process is a monitor */
  11. # endif
  12.  
  13. char    Buf[BUFSIZ];            /* general scribbling buffer */
  14. char    Maze[HEIGHT][WIDTH2];        /* the maze */
  15. char    Orig_maze[HEIGHT][WIDTH2];    /* the original maze */
  16.  
  17. long    Fds_mask;            /* mask for the file descriptors */
  18. int    Have_inp;            /* which file descriptors have input */
  19. int    Nplayer = 0;            /* number of players */
  20. int    Num_fds;            /* number of maximum file descriptor */
  21. int    Socket;                /* main socket */
  22. long    Sock_mask;            /* select mask for main socket */
  23. int    Status;                /* stat socket */
  24. long    Stat_mask;            /* select mask for stat socket */
  25. int    See_over[NASCII];        /* lookup table for determining whether
  26.                      * character represents "transparent"
  27.                      * item */
  28.  
  29. BULLET    *Bullets = NULL;        /* linked list of bullets */
  30.  
  31. EXPL    *Expl[EXPLEN];            /* explosion lists */
  32. EXPL    *Last_expl;            /* last explosion on Expl[0] */
  33.  
  34. PLAYER    Player[MAXPL];            /* all the players */
  35. PLAYER    *End_player = Player;        /* last active player slot */
  36. # ifdef BOOTS
  37. PLAYER    Boot[NBOOTS];            /* all the boots */
  38. # endif
  39. IDENT    *Scores;            /* score cache */
  40. # ifdef MONITOR
  41. PLAYER    Monitor[MAXMON];        /* all the monitors */
  42. PLAYER    *End_monitor = Monitor;        /* last active monitor slot */
  43. # endif
  44.  
  45. # ifdef VOLCANO
  46. int    volcano = 0;            /* Explosion size */
  47. # endif
  48.  
  49. int    shot_req[MAXBOMB]    = {
  50.                 BULREQ, GRENREQ, SATREQ,
  51.                 BOMB7REQ, BOMB9REQ, BOMB11REQ,
  52.                 BOMB13REQ, BOMB15REQ, BOMB17REQ,
  53.                 BOMB19REQ, BOMB21REQ,
  54.             };
  55. int    shot_type[MAXBOMB]    = {
  56.                 SHOT, GRENADE, SATCHEL,
  57.                 BOMB, BOMB, BOMB,
  58.                 BOMB, BOMB, BOMB,
  59.                 BOMB, BOMB,
  60.             };
  61.  
  62. int    slime_req[MAXSLIME]    = {
  63.                 SLIMEREQ, SSLIMEREQ, SLIME2REQ, SLIME3REQ,
  64.             };
  65.