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  ODESC_NOEGO = 0x200
42 };
43 
44 
45 extern const char *inscrip_text[];
46 
47 void object_base_name(char *buf, size_t max, int tval, bool plural);
48 void object_kind_name(char *buf, size_t max, const struct object_kind *kind,
49  bool easy_know);
50 size_t obj_desc_name_format(char *buf, size_t max, size_t end, const char *fmt,
51  const char *modstr, bool pluralise);
52 size_t object_desc(char *buf, size_t max, const struct object *obj, int mode);
53 
54 #endif /* OBJECT_DESC_H */
Definition: obj-desc.h:26
Definition: obj-desc.h:28
Definition: obj-desc.h:40
size_t object_desc(char *buf, size_t max, const struct object *obj, int mode)
Describes item obj into buffer buf of size max.
Definition: obj-desc.c:600
Information about object kinds, including player knowledge.
Definition: object.h:158
Definition: obj-desc.h:33
Definition: obj-desc.h:39
Definition: obj-desc.h:35
Definition: obj-desc.h:34
Definition: obj-desc.h:27
size_t obj_desc_name_format(char *buf, size_t max, size_t end, const char *fmt, const char *modstr, bool pluralise)
Formats 'fmt' into 'buf', with the following formatting characters:
Definition: obj-desc.c:213
png_bytep buf
Definition: libpng12/png.h:2815
const char * inscrip_text[]
Definition: obj-desc.h:30
Definition: obj-desc.h:41
int tval
Definition: object.h:136
void object_kind_name(char *buf, size_t max, const struct object_kind *kind, bool easy_know)
Puts a very stripped-down version of an object's name into buf.
Definition: obj-desc.c:48
Definition: obj-desc.h:37
Definition: obj-desc.h:36
void object_base_name(char *buf, size_t max, int tval, bool plural)
Puts the object base kind's name into buf.
Definition: obj-desc.c:31
bool easy_know(const struct object *obj)
Object kind functions These deal with knowledge of an object's kind
Definition: obj-knowledge.c:1971