Home | History | Annotate | Download | only in rogue

Lines Matching refs:OBJECT

1 /*	$NetBSD: object.c,v 1.15 2025/04/07 14:36:28 hgutch Exp $	*/
38 static char sccsid[] = "@(#)object.c 8.1 (Berkeley) 5/31/93";
40 __RCSID("$NetBSD: object.c,v 1.15 2025/04/07 14:36:28 hgutch Exp $");
45 * object.c
58 object level_objects;
63 static object *free_list = NULL;
165 static void gr_armor(object *);
166 static void gr_potion(object *);
167 static void gr_scroll(object *);
168 static void gr_wand(object *);
169 static void gr_weapon(object *, int);
174 static void rand_place(object *);
180 object *obj;
232 object *obj;
241 dungeon[row][col] |= OBJECT;
246 place_at(object *obj, int row, int col)
250 dungeon[row][col] |= OBJECT;
254 object *
255 object_at(object *pack, short row, short col)
257 object *obj = NULL;
259 if (dungeon[row][col] & (MONSTER | OBJECT)) {
272 object *
275 object *obj;
286 free_stuff(object *objlist)
288 object *obj;
299 name_of(const object *obj)
354 object *
357 object *obj;
420 gr_scroll(object *obj)
458 gr_potion(object *obj)
498 set_weapon_damage(object *obj)
527 gr_weapon(object *obj, int assign_wk)
568 gr_armor(object *obj)
594 gr_wand(object *obj)
602 get_food(object *obj, boolean force_ration)
623 get_armor_class(const object *obj)
631 object *
634 object *obj;
639 } else if (!(obj = md_malloc(sizeof(object)))) {
640 messagef(0, "cannot allocate object, saving game");
654 free_object(object *obj)
676 object *obj;
678 object *monster;
715 object *obj;
723 rand_place(object *obj)
735 object *obj;
743 messagef(0, "type of object?");