# 2.11BSD#431 - /usr/src/games/hack/hack.Decl.c

##### Variables

    curx              X
    cury              X
    dlevel            X
    fgold             X
    flags             X
    fmon              X
    fobj              X
    ftrap             X
    fut_geno          X
    genocided         X
    in_mklev          X
    levl              X
    lock              X
    moves             X
    multi             X
    nul               X
    plname            X
    quitchars         X
    restoring         X
    rooms             X
    save_cm           X
    seehx             X
    seehy             X
    seelx             X
    seely             X
    u                 X
    wailmsg           X
    xdnstair          X
    xupstair          X
    ydnstair          X
    youmonst          X
    yupstair          X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
       2: /* hack.Decl.c - version 1.0.3 */
       3:
       4: #include    "hack.h"
       5: char nul[40];           /* contains zeros */
       6: char plname[PL_NSIZ];       /* player name */
       7: char lock[PL_NSIZ+4] = "1lock"; /* long enough for login name .99 */
       8:
       9: boolean in_mklev, restoring;
      10:
      11: struct rm levl[COLNO][ROWNO];   /* level map */
      12: #ifndef QUEST
      13: #include "def.mkroom.h"
      14: struct mkroom rooms[MAXNROFROOMS+1];
      15: coord doors[DOORMAX];
      16: #endif QUEST
      17: struct monst *fmon = 0;
      18: struct trap *ftrap = 0;
      19: struct gold *fgold = 0;
      20: struct obj *fobj = 0, *fcobj = 0, *invent = 0, *uwep = 0, *uarm = 0,
      21:     *uarm2 = 0, *uarmh = 0, *uarms = 0, *uarmg = 0, *uright = 0,
      22:     *uleft = 0, *uchain = 0, *uball = 0;
      23: struct flag flags;
      24: struct you u;
      25: struct monst youmonst;  /* dummy; used as return value for boomhit */
      26:
      27: xchar dlevel = 1;
      28: xchar xupstair, yupstair, xdnstair, ydnstair;
      29: char *save_cm = 0, *killer, *nomovemsg;
      30:
      31: long moves = 1;
      32: long wailmsg = 0;
      33:
      34: int multi = 0;
      35: char genocided[60];
      36: char fut_geno[60];
      37:
      38: xchar curx,cury;
      39: xchar seelx, seehx, seely, seehy;   /* corners of lit room */
      40:
      41: coord bhitpos;
      42:
      43: char quitchars[] = " \r\n\033";

#### Defined variables

curx defined in line 38; never used
cury defined in line 38; never used
dlevel defined in line 27; never used
fgold defined in line 19; used 16 times

- in /usr/src/games/hack/hack.invent.c line 145-147(3), 262
- in /usr/src/games/hack/hack.lev.c line 46, 56, 177, 220-221(2)
- in /usr/src/games/hack/hack.main.c line 257
- in /usr/src/games/hack/hack.mkobj.c line 142-146(2)
- in /usr/src/games/hack/hack.mon.c line 354
- in /usr/src/games/hack/hack.read.c line 258-263(2), 271

flags defined in line 23; used 225 times

- in /usr/src/games/hack/def.flag.h line 7
- in /usr/src/games/hack/hack.apply.c line 67, 188
- in /usr/src/games/hack/hack.c line 153, 253, 303, 345-347(2), 368, 475-476(2), 497-501(3), 516-520(2), 528-531(5), 687(2), 722, 732, 744, 762
- in /usr/src/games/hack/hack.cmd.c line 101-116(5), 122-124(2), 134-155(9), 163, 183, 266-270(2), 277-281(2), 294
- in /usr/src/games/hack/hack.do.c line 154, 234, 448, 466-468(2)
- in /usr/src/games/hack/hack.do_wear.c line 226, 264, 283
- in /usr/src/games/hack/hack.dog.c line 386
- in /usr/src/games/hack/hack.eat.c line 79, 203, 292, 317, 343, 395
- in /usr/src/games/hack/hack.end.c line 73-75(2), 93, 99, 252, 340-342(4), 349-351(4), 633-636(2)
- in /usr/src/games/hack/hack.invent.c line 68, 282, 320, 401, 564, 586, 617-622(2), 685-688(2)
- in /usr/src/games/hack/hack.main.c line 151, 251, 258, 268, 275, 285-292(4), 299, 313(2), 328, 335, 357, 364-366(3), 378-387(5)
- in /usr/src/games/hack/hack.makemon.c line 52
- in /usr/src/games/hack/hack.mhitu.c line 120, 139, 207
- in /usr/src/games/hack/hack.mkmaze.c line 18, 35, 41
- in /usr/src/games/hack/hack.mkobj.c line 57
- in /usr/src/games/hack/hack.mon.c line 728, 735
- in /usr/src/games/hack/hack.options.c line 13-19(11), 50-76(7), 82, 89-93(2), 127-133(3), 182-193(13)
- in /usr/src/games/hack/hack.pager.c line 124-125(2), 131, 230, 237, 325
- in /usr/src/games/hack/hack.potion.c line 27, 60, 129, 156, 205, 212, 303-311(3)
- in /usr/src/games/hack/hack.pri.c line 219, 568, 588, 597-598(3), 621, 653-659(3)
- in /usr/src/games/hack/hack.save.c line 44, 52, 115, 190, 226
- in /usr/src/games/hack/hack.shk.c line 297, 572
- in /usr/src/games/hack/hack.steal.c line 31
- in /usr/src/games/hack/hack.termcap.c line 34, 241
- in /usr/src/games/hack/hack.topl.c line 37, 72, 78-95(5), 109, 115, 129, 135, 144
- in /usr/src/games/hack/hack.tty.c line 62-63(2), 77-78(2), 119, 166-171(3), 186, 203, 251-252(2)
- in /usr/src/games/hack/hack.u_init.c line 99, 175
- in /usr/src/games/hack/hack.wizard.c line 20(2), 141, 184

fmon defined in line 17; used 45 times

- in /usr/src/games/hack/hack.apply.c line 217, 233
- in /usr/src/games/hack/hack.bones.c line 48
- in /usr/src/games/hack/hack.dog.c line 43-50(4), 57
- in /usr/src/games/hack/hack.fight.c line 100
- in /usr/src/games/hack/hack.invent.c line 180
- in /usr/src/games/hack/hack.lev.c line 45, 58, 186, 193
- in /usr/src/games/hack/hack.main.c line 255
- in /usr/src/games/hack/hack.makemon.c line 50-51(2)
- in /usr/src/games/hack/hack.mon.c line 29, 608-609(2), 620-622(4), 779
- in /usr/src/games/hack/hack.potion.c line 75-80(2)
- in /usr/src/games/hack/hack.pri.c line 204, 234, 528
- in /usr/src/games/hack/hack.read.c line 99, 201, 393
- in /usr/src/games/hack/hack.save.c line 158
- in /usr/src/games/hack/hack.shk.c line 105, 173, 230, 313, 498
- in /usr/src/games/hack/hack.steal.c line 44
- in /usr/src/games/hack/hack.vault.c line 72
- in /usr/src/games/hack/hack.wizard.c line 23, 171
- in /usr/src/games/hack/hack.worm.c line 161-162(2)

fobj defined in line 20; used 63 times

- in /usr/src/games/hack/hack.bones.c line 35-36(2), 59
- in /usr/src/games/hack/hack.c line 316-317(2), 355, 365
- in /usr/src/games/hack/hack.do.c line 71-72(2), 406-407(2), 430-431(2)
- in /usr/src/games/hack/hack.dog.c line 185, 295
- in /usr/src/games/hack/hack.eat.c line 96
- in /usr/src/games/hack/hack.fight.c line 76-78(2), 92
- in /usr/src/games/hack/hack.invent.c line 133-135(4), 202, 213, 758-759(2)
- in /usr/src/games/hack/hack.lev.c line 48, 59, 235
- in /usr/src/games/hack/hack.main.c line 254
- in /usr/src/games/hack/hack.mkobj.c line 16-17(2), 27-28(2)
- in /usr/src/games/hack/hack.mon.c line 363, 467, 746-751(2)
- in /usr/src/games/hack/hack.potion.c line 90-94(2), 101
- in /usr/src/games/hack/hack.pri.c line 512
- in /usr/src/games/hack/hack.read.c line 286, 302
- in /usr/src/games/hack/hack.save.c line 141, 147
- in /usr/src/games/hack/hack.shk.c line 101, 496
- in /usr/src/games/hack/hack.steal.c line 188-190(3)
- in /usr/src/games/hack/hack.trap.c line 75, 84-85(2), 107, 364-368(4)
- in /usr/src/games/hack/hack.wizard.c line 51
- in /usr/src/games/hack/hack.zap.c line 205-206(2)

ftrap defined in line 18; used 19 times

- in /usr/src/games/hack/hack.bones.c line 57
- in /usr/src/games/hack/hack.invent.c line 159-162(4), 250
- in /usr/src/games/hack/hack.lev.c line 47, 57, 178, 229-230(2)
- in /usr/src/games/hack/hack.main.c line 256
- in /usr/src/games/hack/hack.read.c line 238-242(2), 250
- in /usr/src/games/hack/hack.search.c line 81, 105
- in /usr/src/games/hack/hack.trap.c line 34-35(2)

fut_geno defined in line 36; used 9 times

- in /usr/src/games/hack/hack.makemon.c line 28-32(4), 39
- in /usr/src/games/hack/hack.save.c line 61(2), 124(2)

genocided defined in line 35; used 4 times

- in /usr/src/games/hack/hack.save.c line 60(2), 123(2)

in_mklev defined in line 9; never used
levl defined in line 11; used 172 times

- in /usr/src/games/hack/hack.apply.c line 203, 290, 308, 379, 404
- in /usr/src/games/hack/hack.bones.c line 84(2)
- in /usr/src/games/hack/hack.c line 36, 60, 71, 102, 110, 150, 161-162(2), 182-183(2), 208-209(2), 216-217(2), 476, 482, 489, 585, 613, 621, 657, 663-666(4), 672
- in /usr/src/games/hack/hack.cmd.c line 293-294(2)
- in /usr/src/games/hack/hack.do.c line 216
- in /usr/src/games/hack/hack.dog.c line 236
- in /usr/src/games/hack/hack.fight.c line 268
- in /usr/src/games/hack/hack.lev.c line 39(2), 179(2)
- in /usr/src/games/hack/hack.makemon.c line 155
- in /usr/src/games/hack/hack.mhitu.c line 98
- in /usr/src/games/hack/hack.mklev.c line 47, 65-66(2), 74-75(2), 299(2), 314-318(10), 345-349(3), 380, 406, 418-429(6), 510, 526, 551, 560, 569, 577, 585, 637, 710, 734
- in /usr/src/games/hack/hack.mkmaze.c line 22, 29, 54-59(3), 84-85(2), 92, 100, 124
- in /usr/src/games/hack/hack.mkshop.c line 224-225(2), 240
- in /usr/src/games/hack/hack.mon.c line 40, 291, 460, 473, 492, 503, 756
- in /usr/src/games/hack/hack.pri.c line 56, 99, 128, 144, 198-199(2), 211, 245, 283, 303-305(2), 342, 398, 413, 531, 572
- in /usr/src/games/hack/hack.read.c line 337, 369, 455-456(2), 474-477(2), 489-496(6), 502-512(5)
- in /usr/src/games/hack/hack.search.c line 17-29(8), 62-71(6)
- in /usr/src/games/hack/hack.shk.c line 894
- in /usr/src/games/hack/hack.trap.c line 321, 329, 442
- in /usr/src/games/hack/hack.vault.c line 48, 98, 110, 158-159(2), 184, 208-212(2)
- in /usr/src/games/hack/hack.zap.c line 219, 314, 337, 365, 422-429(3), 516-520(4)

lock defined in line 7; used 18 times

- in /usr/src/games/hack/hack.main.c line 205-210(2), 410
- in /usr/src/games/hack/hack.save.c line 69-70(2), 80-86(3), 131-132(2)
- in /usr/src/games/hack/hack.unix.c line 173-176(2), 211-222(5), 234

moves defined in line 31; used 29 times

- in /usr/src/games/hack/hack.lev.c line 40, 189(2)
- in /usr/src/games/hack/hack.main.c line 303, 312, 318-319(2), 327, 334
- in /usr/src/games/hack/hack.mkobj.c line 56
- in /usr/src/games/hack/hack.mon.c line 30-35(2), 60, 77, 102, 172
- in /usr/src/games/hack/hack.pri.c line 515, 521, 622
- in /usr/src/games/hack/hack.save.c line 55(2), 118(2)
- in /usr/src/games/hack/hack.shk.c line 814-817(2)
- in /usr/src/games/hack/hack.unix.c line 303-307(2)
- in /usr/src/games/hack/hack.worm.c line 49-50(2)

multi defined in line 34; used 25 times

- in /usr/src/games/hack/hack.main.c line 340-346(3), 368, 376-393(6), 399(2)
- in /usr/src/games/hack/hack.mhitu.c line 162, 168, 348
- in /usr/src/games/hack/hack.potion.c line 38
- in /usr/src/games/hack/hack.shk.c line 311
- in /usr/src/games/hack/hack.steal.c line 97, 113, 148
- in /usr/src/games/hack/hack.tty.c line 206-208(4)
- in /usr/src/games/hack/hack.wield.c line 16

nul defined in line 5; used 3 times

- in /usr/src/games/hack/hack.engrave.c line 271
- in /usr/src/games/hack/hack.lev.c line 136, 150

plname defined in line 6; used 44 times

- in /usr/src/games/hack/hack.bones.c line 46
- in /usr/src/games/hack/hack.do_name.c line 61, 201
- in /usr/src/games/hack/hack.end.c line 105, 254, 545
- in /usr/src/games/hack/hack.main.c line 88-93(9), 156-160(4), 187-190(4), 205-210(2), 241, 250, 281, 434-436(3)
- in /usr/src/games/hack/hack.monst.c line 72
- in /usr/src/games/hack/hack.rip.c line 34
- in /usr/src/games/hack/hack.shk.c line 191-196(2), 203, 237, 385, 804-806(2), 816, 854
- in /usr/src/games/hack/hack.u_init.c line 337-341(2)

quitchars defined in line 43; used 7 times

- in /usr/src/games/hack/hack.cmd.c line 246
- in /usr/src/games/hack/hack.do_wear.c line 51, 196
- in /usr/src/games/hack/hack.invent.c line 378, 662
- in /usr/src/games/hack/hack.pager.c line 281-283(2)

restoring defined in line 9; never used
rooms defined in line 14; used 39 times

- in /usr/src/games/hack/hack.apply.c line 311
- in /usr/src/games/hack/hack.dog.c line 213-214(2), 369-373(2)
- in /usr/src/games/hack/hack.lev.c line 53(2), 239(2)
- in /usr/src/games/hack/hack.mklev.c line 44, 62, 69, 78, 105, 111, 399, 470-471(2), 625
- in /usr/src/games/hack/hack.mkshop.c line 50-52(2), 147-149(3), 213
- in /usr/src/games/hack/hack.shk.c line 77, 145, 156, 172, 180-185(2), 206, 413, 595
- in /usr/src/games/hack/hack.trap.c line 268
- in /usr/src/games/hack/hack.unix.c line 357-358(2)
- in /usr/src/games/hack/hack.vault.c line 82, 190

save_cm defined in line 29; used 2 times

- in /usr/src/games/hack/hack.main.c line 391
- in /usr/src/games/hack/hack.tty.c line 209

seehx defined in line 39; never used
seehy defined in line 39; never used
seelx defined in line 39; never used
seely defined in line 39; never used
u defined in line 24; used 642 times

- in /usr/src/games/hack/hack.h line 94-113(10)
- in /usr/src/games/hack/hack.invent.c line 280, 388-389(2), 453, 489-490(2), 638, 644, 706, 714-718(5), 725(2), 793-797(4), 804-807(3)
- in /usr/src/games/hack/hack.main.c line 117-118(2), 264-265(2), 271(2), 284(2), 291, 314-336(15)
- in /usr/src/games/hack/hack.makemon.c line 69(2), 156(2), 176-181(5)
- in /usr/src/games/hack/hack.mhitu.c line 20-26(3), 35(2), 47-49(2), 76(2), 93-97(3), 136(2), 150, 204-206(6), 217-222(5), 276-279(3), 316, 327, 340
- in /usr/src/games/hack/hack.mon.c line 73, 114-122(5), 131-138(5), 210-211(4), 222, 232, 291(2), 314(2), 322-324(3), 336(2), 375-376(2), 507(2), 558(4), 574, 581, 610(2), 647-655(6), 675-677(2), 686-687(2), 693-696(5), 710-715(2), 729-734(5), 757(2), 821(2)
- in /usr/src/games/hack/hack.objnam.c line 530
- in /usr/src/games/hack/hack.potion.c line 25-26(4), 35(2), 50(2), 61-63(5), 95(2), 125-128(9), 157-159(5), 169, 197-203(5), 303-310(9), 378(2)
- in /usr/src/games/hack/hack.pri.c line 14-28(15), 175(3), 190, 198-201(9), 228, 264-283(29), 298(2), 305(2), 425-431(6), 447-453(8), 472(2), 530, 548, 568(2), 602-620(15)
- in /usr/src/games/hack/hack.read.c line 92, 149(2), 176(2), 188, 207-209(2), 222-228(6), 243(2), 264(2), 288(2), 388, 419-420(4), 455-456(5), 462-463(2), 474-477(4), 489-508(24)
- in /usr/src/games/hack/hack.rip.c line 37
- in /usr/src/games/hack/hack.save.c line 45, 56-58(4), 119-120(2), 155, 162
- in /usr/src/games/hack/hack.search.c line 16-20(9), 57-61(7), 103-108(6)
- in /usr/src/games/hack/hack.shk.c line 131-136(5), 186-189(3), 211, 219-222(2), 295, 316, 329-334(3), 340, 360, 368-370(2), 377-381(2), 442, 469-475(4), 512-513(4), 564-565(4), 749, 764-768(10), 830-832(4), 839-840(2), 849-850(2), 860, 943-944(6), 960
- in /usr/src/games/hack/hack.steal.c line 8-26(13)
- in /usr/src/games/hack/hack.timeout.c line 9-12(4), 19, 33(2)
- in /usr/src/games/hack/hack.track.c line 20-21(2)
- in /usr/src/games/hack/hack.trap.c line 57-63(4), 74(2), 83-86(4), 92, 106(2), 113-116(4), 127-128(2), 238-240(3), 252-257(3), 310-317(7), 325(2), 342-347(4), 361-362(2), 431-436(2), 442(2)
- in /usr/src/games/hack/hack.u_init.c line 176-181(4), 190-191(4), 197-199(6), 207-208(4), 215-216(4), 222-240(14), 248-249(3)
- in /usr/src/games/hack/hack.unix.c line 332(2), 355-359(4)
- in /usr/src/games/hack/hack.vault.c line 45(2), 81-86(4), 92-96(8), 109(2), 147, 172
- in /usr/src/games/hack/hack.wizard.c line 53(2), 92-94(4), 134(2), 163
- in /usr/src/games/hack/hack.zap.c line 28, 138-147(8), 160(2), 167, 189-190(2), 199-207(6), 213-214(4), 241-242(2), 250(4), 307-308(2), 348-349(2), 370-371(3), 407-413(3), 476-478(3), 502

wailmsg defined in line 32; used 2 times

- in /usr/src/games/hack/hack.main.c line 318-319(2)

xdnstair defined in line 28; never used
xupstair defined in line 28; never used
ydnstair defined in line 28; never used
youmonst defined in line 25; used 4 times

- in /usr/src/games/hack/hack.do.c line 292, 317
- in /usr/src/games/hack/hack.potion.c line 231
- in /usr/src/games/hack/hack.zap.c line 377

yupstair defined in line 28; never used

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