Angband
obj-desc.h
Go to the documentation of this file.
1 
19 #ifndef OBJECT_DESC_H
20 #define OBJECT_DESC_H
21 
25 enum {
26  ODESC_BASE = 0x00,
27  ODESC_COMBAT = 0x01,
28  ODESC_EXTRA = 0x02,
33  ODESC_STORE = 0x04,
34  ODESC_PLURAL = 0x08,
35  ODESC_SINGULAR = 0x10,
36  ODESC_SPOIL = 0x20,
37  ODESC_PREFIX = 0x40, /* */
38 
39  ODESC_CAPITAL = 0x80,
40  ODESC_TERSE = 0x100
41 };
42 
43 
44 extern const char *inscrip_text[];
45 
46 void object_base_name(char *buf, size_t max, int tval, bool plural);
47 void object_kind_name(char *buf, size_t max, const object_kind *kind, bool easy_know);
48 size_t obj_desc_name_format(char *buf, size_t max, size_t end, const char *fmt, const char *modstr, bool pluralise);
49 size_t object_desc(char *buf, size_t max, const object_type *o_ptr, int mode);
50 
51 #endif /* OBJECT_DESC_H */