]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/def.obj.h
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
4 * $NetBSD: def.obj.h,v 1.3 1995/03/23 08:29:32 cgd Exp $
10 unsigned o_cnt_id
; /* id of container object is in */
15 uchar quan
; /* use oextra for tmp gold objects */
16 schar spe
; /* quality of weapon, armor or ring (+ or -)
17 number of charges for wand ( >= -1 )
18 special for uball and amulet %% BAH */
21 Bitfield(oinvis
,1); /* not yet implemented */
23 Bitfield(known
,1); /* exact nature known */
24 Bitfield(dknown
,1); /* color or text known */
26 Bitfield(unpaid
,1); /* on some bill */
29 long age
; /* creation date */
36 #define W_ARMOR (W_ARM | W_ARM2 | W_ARMH | W_ARMS | W_ARMG)
37 #define W_RINGL 010000L /* make W_RINGL = RING_LEFT (see uprop) */
38 #define W_RINGR 020000L
39 #define W_RING (W_RINGL | W_RINGR)
42 #define W_CHAIN 04000L
43 long oextra
[1]; /* used for name of ordinary objects - length
44 is flexible; amount for tmp gold objects */
47 extern struct obj
*fobj
;
49 #define newobj(xl) (struct obj *) alloc((unsigned)(xl) + sizeof(struct obj))
50 #define ONAME(otmp) ((char *) otmp->oextra)
51 #define OGOLD(otmp) (otmp->oextra[0])