Angband
obj-gear.h
Go to the documentation of this file.
1 
20 #ifndef OBJECT_GEAR_H
21 #define OBJECT_GEAR_H
22 
23 #include "player.h"
24 
28 enum
29 {
30  #define EQUIP(a, b, c, d, e, f) EQUIP_##a,
31  #include "list-equip-slots.h"
32  #undef EQUIP
33  EQUIP_MAX
34 };
35 
36 int slot_by_name(struct player *p, const char *name);
37 bool slot_type_is(int slot, int type);
38 struct object *slot_object(struct player *p, int slot);
39 struct object *equipped_item_by_slot_name(struct player *p, const char *name);
40 bool object_is_equipped(struct player_body body, const struct object *obj);
41 bool object_is_carried(struct player *p, const struct object *obj);
42 const char *equip_mention(struct player *p, int slot);
43 const char *equip_describe(struct player *p, int slot);
44 int wield_slot(const struct object *o_ptr);
45 int minus_ac(struct player *p);
46 char gear_to_label(struct object *obj);
47 bool gear_excise_object(struct object *obj);
48 struct object *gear_last_item(void);
49 struct object *gear_object_for_use(struct object *obj, int num, bool message);
50 bool inven_carry_okay(const struct object *obj);
51 bool inven_stack_okay(const struct object *o_ptr);
52 void inven_item_charges(struct object *obj);
53 bool inven_carry(struct player *p, struct object *obj, bool message);
54 void inven_takeoff(struct object *item);
55 void inven_drop(struct object *obj, int amt);
56 void combine_pack(void);
57 bool pack_is_full(void);
58 bool pack_is_overfull(void);
59 void pack_overflow(void);
60 
61 
62 #endif /* OBJECT_GEAR_H */