Angband
mon-msg.h
Go to the documentation of this file.
1 
19 #ifndef MONSTER_MESSAGE_H
20 #define MONSTER_MESSAGE_H
21 
22 #include "monster.h"
23 
30  #define MON_MSG(x, s) MON_MSG_##x,
31  #include "list-mon-message.h"
32  #undef MON_MSG
33 };
34 
35 enum {
38 };
39 
43 #define MAX_STORED_MON_MSG 200
44 #define MAX_STORED_MON_CODES 400
45 
47  MON_MSG_FLAG_HIDDEN = 0x01, /* What is this? - NRM */
50 };
51 
57 typedef struct monster_race_message
58 {
59  monster_race *race; /* The race of the monster */
60  byte mon_flags; /* Flags */
61  int msg_code; /* The coded message */
62  byte mon_count; /* How many monsters triggered this message */
63  bool delay; /* Should this message be put off to the end */
64  byte delay_tag; /* To group delayed messages for better presentation */
66 
68 {
69  struct monster *mon; /* The monster */
70  int message_code; /* The coded message */
72 
73 
77 
79 void message_pain(struct monster *m, int dam);
80 bool add_monster_message(const char *mon_name, struct monster *m, int msg_code,
81  bool delay);
83 
84 #endif /* MONSTER_MESSAGE_H */