Angband
mon-desc.h
Go to the documentation of this file.
1 
19 #ifndef MONSTER_DESC_H
20 #define MONSTER_DESC_H
21 
22 #include "monster.h"
23 
27 #define MDESC_DEFAULT 0x00 /* "it" or "the kobold" */
28 #define MDESC_OBJE 0x01 /* Objective (or Reflexive) */
29 #define MDESC_POSS 0x02 /* Possessive (or Reflexive) */
30 #define MDESC_IND_HID 0x04 /* Indefinites for hidden monsters */
31 #define MDESC_IND_VIS 0x08 /* Indefinites for visible monsters */
32 #define MDESC_PRO_HID 0x10 /* Pronominalize hidden monsters */
33 #define MDESC_PRO_VIS 0x20 /* Pronominalize visible monsters */
34 #define MDESC_HIDE 0x40 /* Assume the monster is hidden */
35 #define MDESC_SHOW 0x80 /* Assume the monster is visible */
36 #define MDESC_CAPITAL 0x100 /* Capitalise */
37 
38 /* "someone", "something", or "the kobold" at the start of a message */
39 #define MDESC_STANDARD (MDESC_CAPITAL | MDESC_IND_HID | MDESC_PRO_HID)
40 
41  /* Reveal the full, indefinite name of a monster */
42 #define MDESC_DIED_FROM (MDESC_SHOW | MDESC_IND_VIS)
43 
44 void plural_aux(char *name, size_t max);
45 void get_mon_name(char *buf, size_t buflen,
46  const struct monster_race *race, int num);
47 void monster_desc(char *desc, size_t max, const struct monster *mon, int mode);
48 
49 #endif /* MONSTER_DESC_H */
Monster "race" information, including racial memories.
Definition: monster.h:266
Monster information, for a specific monster.
Definition: monster.h:324
void monster_desc(char *desc, size_t max, const struct monster *mon, int mode)
Builds a string describing a monster in some way.
Definition: mon-desc.c:110
void plural_aux(char *name, size_t max)
Perform simple English pluralization on a monster name.
Definition: mon-desc.c:27
png_bytep buf
Definition: libpng12/png.h:2815
const char * desc
Definition: obj-info.c:71
int num
Definition: libpng12/png.h:1527
void get_mon_name(char *buf, size_t buflen, const struct monster_race *race, int num)
Helper function for display monlist.
Definition: mon-desc.c:44
Flags, structures and variables for monsters.
Intialize random names
Definition: init.c:656