Angband
mon-timed.h
Go to the documentation of this file.
1 
19 #ifndef MONSTER_TIMED_H
20 #define MONSTER_TIMED_H
21 
22 
28 enum {
29  #define MON_TMD(a, b, c, d, e, f) MON_TMD_##a,
30  #include "list-mon-timed.h"
31  #undef MON_TMD
32 };
33 
37 #define MON_TMD_FLG_NOTIFY 0x01 /* Give notification */
38 #define MON_TMD_MON_SOURCE 0x02 /* Monster is causing the damage */
39 #define MON_TMD_FLG_NOMESSAGE 0x04 /* Never show a message */
40 #define MON_TMD_FLG_NOFAIL 0x08 /* Never fail */
41 
43 int mon_timed_name_to_idx(const char *name);
44 bool mon_inc_timed(struct monster *m_ptr, int ef_idx, int timer, u16b flag,
45  bool id);
46 bool mon_dec_timed(struct monster *m_ptr, int ef_idx, int timer, u16b flag,
47  bool id);
48 bool mon_clear_timed(struct monster *m_ptr, int ef_idx, u16b flag, bool id);
49 
50 
51 #endif /* MONSTER_TIMED_H */