Angband
message.h
Go to the documentation of this file.
1 
18 #ifndef INCLUDED_Z_MSG_H
19 #define INCLUDED_Z_MSG_H
20 
21 #include "h-basic.h"
22 
26 enum {
27  #define MSG(x, s) MSG_##x,
28  #include "list-message.h"
29  #undef MSG
30  SOUND_MAX = MSG_MAX,
31 };
32 
33 
34 /* Functions */
35 void messages_init(void);
36 void messages_free(void);
37 u16b messages_num(void);
38 void message_add(const char *str, u16b type);
39 const char *message_str(u16b age);
44 void message_color_define(u16b type, byte color);
45 int message_lookup_by_name(const char *name);
46 int message_lookup_by_sound_name(const char *name);
47 const char *message_sound_name(int message);
48 void sound(int type);
49 void bell(const char *fmt, ...);
50 void msg(const char *fmt, ...);
51 void msgt(unsigned int type, const char *fmt, ...);
52 
53 
54 #endif /* !INCLUDED_Z_MSG_H */