# 2.11BSD#431 - /usr/src/games/hack/def.mkroom.h

##### Macros

    BEEHIVE           X
    DOORMAX           X
    GENERAL           X
    MAXNROFROOMS      X
    MORGUE            X
    SHOPBASE          X
    SWAMP             X
    VAULT             X
    WANDSHOP          X
    ZOO               X

##### struct's

    mkroom            X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
       2: /* def.mkroom.h - version 1.0.3 */
       3:
       4: struct mkroom {
       5:     schar lx,hx,ly,hy;  /* usually xchar, but hx may be -1 */
       6:     schar rtype,rlit,doorct,fdoor;
       7: };
       8:
       9: #define MAXNROFROOMS    15
      10: extern struct mkroom rooms[MAXNROFROOMS+1];
      11:
      12: #define DOORMAX 100
      13: extern coord doors[DOORMAX];
      14:
      15: /* various values of rtype */
      16: /* 0: ordinary room; 8-15: various shops */
      17: /* Note: some code assumes that >= 8 means shop, so be careful when adding
      18:    new roomtypes */
      19: #define SWAMP   3
      20: #define VAULT   4
      21: #define BEEHIVE 5
      22: #define MORGUE  6
      23: #define ZOO 7
      24: #define SHOPBASE    8
      25: #define WANDSHOP    9
      26: #define GENERAL 15

#### Defined struct's

mkroom defined in line 4; used 44 times

- in line 10(2)
- in /usr/src/games/hack/hack.Decl.c line 14(2)
- in /usr/src/games/hack/hack.dog.c line 369(2)
- in /usr/src/games/hack/hack.mklev.c line 17(2), 38(2), 105(2), 278(2), 326(2), 339-342(4), 365(2), 467(2), 616(2), 664(2)
- in /usr/src/games/hack/hack.mkmaze.c line 82(2)
- in /usr/src/games/hack/hack.mkshop.c line 16(2), 139(2), 208(2), 247(2), 254(2), 261(2)
- in /usr/src/games/hack/hack.trap.c line 267(2)

#### Defined macros

BEEHIVE defined in line 21; used 3 times

- in /usr/src/games/hack/hack.mklev.c line 130
- in /usr/src/games/hack/hack.mkshop.c line 36, 171

DOORMAX defined in line 12; used 7 times

- in line 13
- in /usr/src/games/hack/hack.Decl.c line 15
- in /usr/src/games/hack/hack.mklev.c line 19, 319, 328, 476, 623

GENERAL defined in line 26; used 2 times

- in /usr/src/games/hack/hack.mkshop.c line 72
- in /usr/src/games/hack/hack.shk.c line 145

MAXNROFROOMS defined in line 9; used 11 times

- in line 10
- in /usr/src/games/hack/hack.Decl.c line 14
- in /usr/src/games/hack/hack.mklev.c line 17-18(2), 110, 155-157(4), 181, 369

MORGUE defined in line 22; used 5 times

- in /usr/src/games/hack/hack.mklev.c line 132
- in /usr/src/games/hack/hack.mkshop.c line 32, 154, 170
- in /usr/src/games/hack/hack.shk.c line 164

SHOPBASE defined in line 24; used 3 times

- in /usr/src/games/hack/hack.mkshop.c line 71-74(3)

SWAMP defined in line 19; used 2 times

- in /usr/src/games/hack/hack.mkshop.c line 219
- in /usr/src/games/hack/hack.shk.c line 161

VAULT defined in line 20; used 4 times

- in /usr/src/games/hack/hack.mklev.c line 114
- in /usr/src/games/hack/hack.trap.c line 269
- in /usr/src/games/hack/hack.vault.c line 82, 190

WANDSHOP defined in line 25; used 1 times

- in /usr/src/games/hack/hack.mkshop.c line 71

ZOO defined in line 23; used 4 times

- in /usr/src/games/hack/hack.mklev.c line 128
- in /usr/src/games/hack/hack.mkshop.c line 28
- in /usr/src/games/hack/hack.shk.c line 158, 174

#### Usage of this include

def.mkroom.h used 11 times

- in /usr/src/games/hack/hack.Decl.c line 13
- in /usr/src/games/hack/hack.apply.c line 6
- in /usr/src/games/hack/hack.dog.c line 8
- in /usr/src/games/hack/hack.lev.c line 5
- in /usr/src/games/hack/hack.mklev.c line 13
- in /usr/src/games/hack/hack.mkmaze.c line 5
- in /usr/src/games/hack/hack.mkshop.c line 6
- in /usr/src/games/hack/hack.shk.c line 27
- in /usr/src/games/hack/hack.trap.c line 266
- in /usr/src/games/hack/hack.unix.c line 282
- in /usr/src/games/hack/hack.vault.c line 15

Last modified: 1985-10-01 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 511 |