Annotation of 43BSDReno/games/hunt/NEW/extern.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.