Angband
obj-chest.h
Go to the documentation of this file.
1 
20 #ifndef OBJECT_CHEST_H
21 #define OBJECT_CHEST_H
22 
30 };
31 
32 extern struct file_parser chest_trap_parser;
33 
34 char *chest_trap_name(const struct object *obj);
35 bool is_trapped_chest(const struct object *obj);
36 bool is_locked_chest(const struct object *obj);
37 int pick_chest_traps(struct object *obj);
38 void unlock_chest(struct object *obj);
39 struct object *chest_check(struct loc grid, enum chest_query check_type);
40 int count_chests(struct loc *grid, enum chest_query check_type);
41 bool do_cmd_open_chest(struct loc grid, struct object *obj);
42 bool do_cmd_disarm_chest(struct object *obj);
43 
44 #endif /* OBJECT_CHEST_H */
char * chest_trap_name(const struct object *obj)
Chest trap information
Definition: obj-chest.c:297
bool do_cmd_disarm_chest(struct object *obj)
Attempt to disarm the chest at the given location Assume there is no monster blocking the destination...
Definition: obj-chest.c:666
Definition: z-type.h:24
struct loc grid
position on map, or (0, 0)
Definition: object.h:429
Definition: obj-chest.h:29
Object information, for a specific object.
Definition: object.h:418
struct object * chest_check(struct loc grid, enum chest_query check_type)
Determine if a grid contains a chest matching the query type, and return a pointer to the first such ...
Definition: obj-chest.c:431
bool is_trapped_chest(const struct object *obj)
Determine if a chest is trapped.
Definition: obj-chest.c:326
struct file_parser chest_trap_parser
Definition: obj-chest.c:282
Definition: obj-chest.h:27
Definition: datafile.h:25
int pick_chest_traps(struct object *obj)
Pick a set of chest traps Currently this only depends on the level of the chest object.
Definition: obj-chest.c:389
Definition: obj-chest.h:28
bool do_cmd_open_chest(struct loc grid, struct object *obj)
Attempt to open the given chest at the given location.
Definition: obj-chest.c:587
int count_chests(struct loc *grid, enum chest_query check_type)
Return the number of grids holding a chests around (or under) the character.
Definition: obj-chest.c:466
bool is_locked_chest(const struct object *obj)
Determine if a chest is locked or trapped.
Definition: obj-chest.c:347
void unlock_chest(struct object *obj)
Unlock a chest.
Definition: obj-chest.c:422
chest_query
Chest check types.
Definition: obj-chest.h:26