Angband
ui-object.h
Go to the documentation of this file.
1 
21 #ifndef OBJECT_UI_H
22 #define OBJECT_UI_H
23 
24 #include "cmd-core.h"
25 
30 typedef enum {
31  OLIST_NONE = 0x00, /* No options */
32  OLIST_WINDOW = 0x01, /* Display list in a sub-term (left-align) */
33  OLIST_QUIVER = 0x02, /* Display quiver lines */
34  OLIST_GOLD = 0x04, /* Include gold in the list */
35  OLIST_WEIGHT = 0x08, /* Show item weight */
36  OLIST_PRICE = 0x10, /* Show item price */
37  OLIST_FAIL = 0x20, /* Show device failure */
38  OLIST_SEMPTY = 0x40,
39  OLIST_DEATH = 0x80
41 
42 
43 byte object_kind_attr(const struct object_kind *kind);
44 wchar_t object_kind_char(const struct object_kind *kind);
45 byte object_attr(const struct object *obj);
46 wchar_t object_char(const struct object *obj);
47 void show_inven(int mode, item_tester tester);
48 void show_equip(int mode, item_tester tester);
49 void show_quiver(int mode, item_tester tester);
50 void show_floor(struct object **floor_list, int floor_num, int mode,
51  item_tester tester);
52 bool textui_get_item(struct object **choice, const char *pmt, const char *str,
53  cmd_code cmd, item_tester tester, int mode);
54 bool get_item_allow(const struct object *obj, unsigned char ch, cmd_code cmd,
55  bool is_harmless);
56 
57 void display_object_recall(struct object *obj);
59 void display_object_recall_interactive(struct object *obj);
60 void textui_obj_examine(void);
61 void textui_cmd_ignore_menu(struct object *obj);
62 void textui_cmd_ignore(void);
63 void textui_cmd_toggle_ignore(void);
64 
65 #endif /* OBJECT_UI_H */
void show_inven(int mode, item_tester tester)
Display the inventory.
Definition: ui-object.c:443
Definition: ui-object.h:32
Definition: ui-object.h:37
static struct object ** floor_list
Definition: ui-object.c:582
Information about object kinds, including player knowledge.
Definition: object.h:158
bool get_item_allow(const struct object *obj, unsigned char ch, cmd_code cmd, bool is_harmless)
Object selection utilities
Definition: ui-object.c:599
Definition: ui-object.h:38
void display_object_kind_recall(struct object_kind *kind)
This draws the Object Recall subwindow when displaying a recalled item kind (e.g. ...
Definition: ui-object.c:1454
uint8_t byte
Definition: h-basic.h:167
void show_quiver(int mode, item_tester tester)
Display the quiver.
Definition: ui-object.c:486
bool(* item_tester)(const struct object *)
Definition: object.h:508
wchar_t object_char(const struct object *obj)
Return the "char" for a given item.
Definition: ui-object.c:129
Definition: ui-object.h:33
void textui_obj_examine(void)
Examine an object.
Definition: ui-object.c:1486
void display_object_recall_interactive(struct object *obj)
Display object recall modally and wait for a keypress.
Definition: ui-object.c:1470
void display_object_recall(struct object *obj)
Object recall
Definition: ui-object.c:1437
Definition: ui-object.h:31
Handles the queueing of game commands.
void textui_cmd_toggle_ignore(void)
Definition: ui-object.c:1655
wchar_t object_kind_char(const struct object_kind *kind)
Return the "char" for a given item kind.
Definition: ui-object.c:108
Definition: ui-object.h:34
cmd_code
All valid game commands.
Definition: cmd-core.h:29
Definition: ui-object.h:39
void textui_cmd_ignore(void)
Definition: ui-object.c:1641
bool textui_get_item(struct object **choice, const char *pmt, const char *str, cmd_code cmd, item_tester tester, int mode)
Let the user select an object, save its address.
Definition: ui-object.c:1167
byte object_attr(const struct object *obj)
Return the "attr" for a given item.
Definition: ui-object.c:119
byte object_kind_attr(const struct object_kind *kind)
Return the "attr" for a given item kind.
Definition: ui-object.c:97
void show_equip(int mode, item_tester tester)
Display the equipment.
Definition: ui-object.c:511
Definition: ui-object.h:35
struct object_kind * kind
Kind of the object.
Definition: object.h:395
void textui_cmd_ignore_menu(struct object *obj)
Definition: ui-object.c:1528
Definition: ui-object.h:36
void show_floor(struct object **floor_list, int floor_num, int mode, item_tester tester)
Display the floor.
Definition: ui-object.c:550
olist_detail_t
Modes for item lists in show_inven(), show_equip(), show_quiver() and show_floor() ...
Definition: ui-object.h:30