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

##### Macros

    ARROW_TRAP        X
    BEAR_TRAP         X
    DART_TRAP         X
    MIMIC             X
    PIERC             X
    PIT               X
    SLP_GAS_TRAP      X
    TELEP_TRAP        X
    TRAPDOOR          X
    TRAPNUM           X
    newtrap           X

##### struct's

    trap              X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
       2: /* def.trap.h - version 1.0.2 */
       3:
       4: struct trap {
       5:     struct trap *ntrap;
       6:     xchar tx,ty;
       7:     unsigned ttyp:5;
       8:     unsigned tseen:1;
       9:     unsigned once:1;
      10: };
      11:
      12: extern struct trap *ftrap;
      13: struct trap *t_at();
      14: #define newtrap()   (struct trap *) alloc(sizeof(struct trap))
      15:
      16: /* various kinds of traps */
      17: #define BEAR_TRAP   0
      18: #define ARROW_TRAP  1
      19: #define DART_TRAP   2
      20: #define TRAPDOOR    3
      21: #define TELEP_TRAP  4
      22: #define PIT         5
      23: #define SLP_GAS_TRAP    6
      24: #define PIERC       7
      25: #define MIMIC       8   /* used only in mklev.c */
      26: #define TRAPNUM     9   /* if not less than 32, change sizeof(ttyp) */
      27:                 /* see also mtrapseen (bit map) */

#### Defined struct's

trap defined in line 4; used 72 times

- in line 5(2), 12-13(4)
- in /usr/src/games/hack/hack.Decl.c line 18(2)
- in /usr/src/games/hack/hack.apply.c line 9(2), 274(2), 328(2)
- in /usr/src/games/hack/hack.bones.c line 16(2)
- in /usr/src/games/hack/hack.c line 83(2), 159(2)
- in /usr/src/games/hack/hack.dog.c line 114(2)
- in /usr/src/games/hack/hack.invent.c line 155-157(4), 246-250(4)
- in /usr/src/games/hack/hack.lev.c line 141-150(8), 158(2), 227-232(4)
- in /usr/src/games/hack/hack.mklev.c line 8(2), 621(2), 666(2)
- in /usr/src/games/hack/hack.mon.c line 536(2)
- in /usr/src/games/hack/hack.pri.c line 338(2)
- in /usr/src/games/hack/hack.read.c line 236(2)
- in /usr/src/games/hack/hack.search.c line 12(2), 54(2), 100(2)
- in /usr/src/games/hack/hack.trap.c line 22-26(4), 39(2), 139(2), 250(2)

#### Defined macros

ARROW_TRAP defined in line 18; never used
BEAR_TRAP defined in line 17; never used
DART_TRAP defined in line 19; never used
MIMIC defined in line 25; used 1 times

- in /usr/src/games/hack/hack.mklev.c line 679

PIERC defined in line 24; used 3 times

- in /usr/src/games/hack/hack.mklev.c line 736
- in /usr/src/games/hack/hack.search.c line 33, 86

PIT defined in line 22; used 2 times

- in /usr/src/games/hack/hack.apply.c line 277
- in /usr/src/games/hack/hack.trap.c line 43

SLP_GAS_TRAP defined in line 23; never used
TELEP_TRAP defined in line 21; used 1 times

- in /usr/src/games/hack/hack.mklev.c line 642

TRAPDOOR defined in line 20; used 3 times

- in /usr/src/games/hack/hack.apply.c line 334-336(2)
- in /usr/src/games/hack/hack.search.c line 108

TRAPNUM defined in line 26; used 2 times

- in /usr/src/games/hack/hack.mklev.c line 671-675(2)

newtrap defined in line 14; used 3 times

- in /usr/src/games/hack/hack.lev.c line 226-231(2)
- in /usr/src/games/hack/hack.trap.c line 28

#### Usage of this include

def.trap.h used 1 times

- in /usr/src/games/hack/hack.h line 24

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