| 1 |
#ifndef MSG_H_ |
| 2 |
#define MSG_H_ |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
#include "acode.h" |
| 11 |
#include "types.h" |
| 12 |
#include "params.h" |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
typedef struct MessageEntry { |
| 19 |
Aaddr stms; |
| 20 |
} MessageEntry; |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
extern MessageEntry *msgs; |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
extern void setErrorHandler(void (*handler)(MsgKind)); |
| 29 |
extern void abortPlayerCommand(void); |
| 30 |
extern void error(MsgKind msg); |
| 31 |
extern bool confirm(MsgKind msgno); |
| 32 |
extern void printMessage(MsgKind msg); |
| 33 |
extern void printMessageWithParameters(MsgKind msg, Parameter *messageParameters); |
| 34 |
extern void printMessageWithInstanceParameter(MsgKind message, int i); |
| 35 |
extern void printMessageUsing2InstanceParameters(MsgKind message, int instance1, int instance2); |
| 36 |
|
| 37 |
#endif |