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