Angband
obj-chest.h
Go to the documentation of this file.
1 
20 #ifndef OBJECT_CHEST_H
21 #define OBJECT_CHEST_H
22 
26 #define CHEST_LOSE_STR 0x01
27 #define CHEST_LOSE_CON 0x02
28 #define CHEST_POISON 0x04
29 #define CHEST_PARALYZE 0x08
30 #define CHEST_EXPLODE 0x10
31 #define CHEST_SUMMON 0x20
32 
33 
41 };
42 
43 byte chest_trap_type(const object_type *o_ptr);
44 bool is_trapped_chest(const object_type *o_ptr);
45 bool is_locked_chest(const object_type *o_ptr);
46 void unlock_chest(object_type *o_ptr);
47 struct object *chest_check(int y, int x, enum chest_query check_type);
48 int count_chests(int *y, int *x, enum chest_query check_type);
49 bool do_cmd_open_chest(int y, int x, struct object *obj);
50 bool do_cmd_disarm_chest(int y, int x, struct object *obj);
51 
52 #endif /* OBJECT_CHEST_H */