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

##### Macros

    OGOLD             X
    ONAME             X
    W_ARM             X
    W_ARM2            X
    W_ARMG            X
    W_ARMH            X
    W_ARMOR           X
    W_ARMS            X
    W_BALL            X
    W_CHAIN           X
    W_RING            X
    W_RINGL           X
    W_RINGR           X
    W_WEP             X
    newobj            X

##### struct's

    obj               X

       1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
       2: /* def.obj.h - version 1.0.3 */
       3:
       4: struct obj {
       5:     struct obj *nobj;
       6:     unsigned o_id;
       7:     unsigned o_cnt_id;      /* id of container object is in */
       8:     xchar ox,oy;
       9:     xchar odx,ody;
      10:     uchar otyp;
      11:     uchar owt;
      12:     uchar quan;     /* use oextra for tmp gold objects */
      13:     schar spe;      /* quality of weapon, armor or ring (+ or -)
      14: 				   number of charges for wand ( >= -1 )
      15: 				   special for uball and amulet %% BAH */
      16:     char olet;
      17:     char invlet;
      18:     EasyBitfield(oinvis,1); /* not yet implemented */
      19:     EasyBitfield(odispl,1);
      20:     EasyBitfield(known,1);  /* exact nature known */
      21:     EasyBitfield(dknown,1); /* color or text known */
      22:     EasyBitfield(cursed,1);
      23:     EasyBitfield(unpaid,1); /* on some bill */
      24:     EasyBitfield(rustfree,1);
      25:     EasyBitfield(onamelth,6);
      26:     long age;       /* creation date */
      27:     long owornmask;
      28: #define W_ARM   01L
      29: #define W_ARM2  02L
      30: #define W_ARMH  04L
      31: #define W_ARMS  010L
      32: #define W_ARMG  020L
      33: #define W_ARMOR     (W_ARM | W_ARM2 | W_ARMH | W_ARMS | W_ARMG)
      34: #define W_RINGL 010000L /* make W_RINGL = RING_LEFT (see uprop) */
      35: #define W_RINGR 020000L
      36: #define W_RING      (W_RINGL | W_RINGR)
      37: #define W_WEP   01000L
      38: #define W_BALL  02000L
      39: #define W_CHAIN 04000L
      40:     long oextra[1];     /* used for name of ordinary objects - length
      41: 				   is flexible; amount for tmp gold objects */
      42: };
      43:
      44: extern struct obj *fobj;
      45:
      46: #define newobj(xl)  (struct obj *) alloc((unsigned)(xl) + sizeof(struct obj))
      47: #define ONAME(otmp) ((char *) otmp->oextra)
      48: #define OGOLD(otmp) (otmp->oextra[0])

#### Defined struct's

obj defined in line 4; used 498 times

- in line 5(2), 44(2)
- in /usr/src/games/hack/hack.Decl.c line 20(2)
- in /usr/src/games/hack/hack.apply.c line 8(2), 16(2), 64(2), 108-111(4), 130(2), 146(2), 155-156(4), 169-171(4), 216(2), 232(2), 288(2), 354(2)
- in /usr/src/games/hack/hack.bones.c line 15(2)
- in /usr/src/games/hack/hack.c line 10(2), 84(2), 310(2), 338(2), 409(2), 766(2), 785(2)
- in /usr/src/games/hack/hack.do.c line 8(2), 24(2), 49(2), 58(2), 65(2), 255(2), 278(2), 356(2), 443-445(6)
- in /usr/src/games/hack/hack.do_name.c line 99-100(4), 118(2), 138(2), 156-159(4)
- in /usr/src/games/hack/hack.do_wear.c line 10-15(4), 71(2), 78(2), 86-89(4), 109(2), 157(2), 168(2), 211(2), 237-241(4), 288(2), 306(2), 313-315(4), 323(2)
- in /usr/src/games/hack/hack.dog.c line 85(2), 113(2), 382(2), 404(2)
- in /usr/src/games/hack/hack.eat.c line 10(2), 47(2), 90(2), 141-142(4), 356(2), 362(2)
- in /usr/src/games/hack/hack.end.c line 120(2)
- in /usr/src/games/hack/hack.engrave.c line 8(2), 130(2)
- in /usr/src/games/hack/hack.fight.c line 7(2), 132(2), 162-163(4), 177-178(4), 285(2)
- in /usr/src/games/hack/hack.h line 48-52(8)
- in /usr/src/games/hack/hack.invent.c line 6-7(4), 22-26(4), 47-51(6), 96(2), 104-111(6), 123-131(8), 196-200(4), 207-211(4), 219-220(4), 229(2), 237-243(6), 271-275(4), 292-296(4), 379-381(4), 428(2), 436(2), 458(2), 518(2), 524(2), 559-561(4), 573(2), 580(2), 602(2), 634(2), 701(2), 757-758(4), 766(2)
- in /usr/src/games/hack/hack.lev.c line 8-9(4), 85-87(4), 95(2)
- in /usr/src/games/hack/hack.makemon.c line 7(2)
- in /usr/src/games/hack/hack.mhitu.c line 332(2)
- in /usr/src/games/hack/hack.mklev.c line 7(2)
- in /usr/src/games/hack/hack.mkmaze.c line 8(2)
- in /usr/src/games/hack/hack.mkobj.c line 7-13(6), 24(2), 31(2), 45-51(6), 125(2)
- in /usr/src/games/hack/hack.mkshop.c line 10(2)
- in /usr/src/games/hack/hack.mon.c line 8(2), 362(2), 466(2), 759(2)
- in /usr/src/games/hack/hack.objnam.c line 84(2), 244(2), 301(2), 326(2), 337(2), 516-517(4)
- in /usr/src/games/hack/hack.potion.c line 11(2), 209(2), 227(2), 298(2), 357(2)
- in /usr/src/games/hack/hack.pri.c line 296(2), 337(2), 480(2), 499(2), 511(2)
- in /usr/src/games/hack/hack.read.c line 7-11(4), 35-36(4), 61(2), 123(2), 138(2), 177(2), 283(2), 439(2)
- in /usr/src/games/hack/hack.save.c line 12(2), 96(2), 172-177(6), 189(2)
- in /usr/src/games/hack/hack.shk.c line 8-9(4), 35(2), 42(2), 97(2), 249(2), 262(2), 423(2), 452(2), 485-489(4), 509(2), 529(2), 559-562(4), 626(2), 691(2), 750(2), 760(2), 793(2), 965(2)
- in /usr/src/games/hack/hack.steal.c line 40(2), 66(2), 98(2), 133(2), 141-143(4), 153(2), 162-167(4), 182(2), 194(2)
- in /usr/src/games/hack/hack.trap.c line 433(2)
- in /usr/src/games/hack/hack.u_init.c line 11(2), 253-254(4)
- in /usr/src/games/hack/hack.unix.c line 324-327(4)
- in /usr/src/games/hack/hack.wield.c line 5-7(4), 13(2), 27(2), 58(2)
- in /usr/src/games/hack/hack.wizard.c line 17(2), 49(2)
- in /usr/src/games/hack/hack.worn.c line 8(2), 24-28(4), 52(2)
- in /usr/src/games/hack/hack.zap.c line 6(2), 23(2), 72(2), 123(2), 142(2), 165-166(4), 301-304(4), 580(2), 595(2), 612(2), 625(2)

#### Defined macros

OGOLD defined in line 48; used 2 times

- in /usr/src/games/hack/hack.do.c line 27
- in /usr/src/games/hack/hack.invent.c line 281

ONAME defined in line 47; used 3 times

- in /usr/src/games/hack/hack.do_name.c line 116
- in /usr/src/games/hack/hack.fight.c line 168
- in /usr/src/games/hack/hack.objnam.c line 237

W_ARM defined in line 28; used 8 times

- in line 33
- in /usr/src/games/hack/hack.do_wear.c line 148
- in /usr/src/games/hack/hack.u_init.c line 286-289(2)
- in /usr/src/games/hack/hack.worn.c line 10, 35, 47, 63

W_ARM2 defined in line 29; used 7 times

- in line 33
- in /usr/src/games/hack/hack.do_wear.c line 26
- in /usr/src/games/hack/hack.invent.c line 324
- in /usr/src/games/hack/hack.worn.c line 11, 39, 47, 63

W_ARMG defined in line 32; used 4 times

- in line 33
- in /usr/src/games/hack/hack.do_wear.c line 140
- in /usr/src/games/hack/hack.u_init.c line 282
- in /usr/src/games/hack/hack.worn.c line 14

W_ARMH defined in line 30; used 4 times

- in line 33
- in /usr/src/games/hack/hack.do_wear.c line 125
- in /usr/src/games/hack/hack.u_init.c line 279
- in /usr/src/games/hack/hack.worn.c line 12

W_ARMOR defined in line 33; used 14 times

- in /usr/src/games/hack/hack.apply.c line 117
- in /usr/src/games/hack/hack.do.c line 40, 263
- in /usr/src/games/hack/hack.do_wear.c line 26, 89, 116
- in /usr/src/games/hack/hack.invent.c line 324-326(2)
- in /usr/src/games/hack/hack.objnam.c line 258
- in /usr/src/games/hack/hack.steal.c line 80-83(2), 91, 98
- in /usr/src/games/hack/hack.wield.c line 33

W_ARMS defined in line 31; used 4 times

- in line 33
- in /usr/src/games/hack/hack.do_wear.c line 130
- in /usr/src/games/hack/hack.u_init.c line 276
- in /usr/src/games/hack/hack.worn.c line 13

W_BALL defined in line 38; used 3 times

- in /usr/src/games/hack/hack.read.c line 137, 420
- in /usr/src/games/hack/hack.worn.c line 18

W_CHAIN defined in line 39; used 2 times

- in /usr/src/games/hack/hack.read.c line 419
- in /usr/src/games/hack/hack.worn.c line 19

W_RING defined in line 36; used 10 times

- in /usr/src/games/hack/hack.apply.c line 117
- in /usr/src/games/hack/hack.do.c line 40, 263
- in /usr/src/games/hack/hack.do_wear.c line 178, 240
- in /usr/src/games/hack/hack.invent.c line 326
- in /usr/src/games/hack/hack.steal.c line 80-83(2), 91
- in /usr/src/games/hack/hack.wield.c line 33

W_RINGL defined in line 34; used 4 times

- in line 36
- in /usr/src/games/hack/hack.h line 56
- in /usr/src/games/hack/hack.objnam.c line 273
- in /usr/src/games/hack/hack.worn.c line 15

W_RINGR defined in line 35; used 4 times

- in line 36
- in /usr/src/games/hack/hack.h line 57
- in /usr/src/games/hack/hack.objnam.c line 272
- in /usr/src/games/hack/hack.worn.c line 16

W_WEP defined in line 37; used 4 times

- in /usr/src/games/hack/hack.invent.c line 328
- in /usr/src/games/hack/hack.objnam.c line 280
- in /usr/src/games/hack/hack.wield.c line 8
- in /usr/src/games/hack/hack.worn.c line 17

newobj defined in line 46; used 6 times

- in /usr/src/games/hack/hack.do.c line 446
- in /usr/src/games/hack/hack.do_name.c line 113
- in /usr/src/games/hack/hack.invent.c line 277
- in /usr/src/games/hack/hack.mkobj.c line 54
- in /usr/src/games/hack/hack.save.c line 186
- in /usr/src/games/hack/hack.shk.c line 570

#### Usage of this include

def.obj.h used 1 times

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

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