Crossfire Server, Trunk  R20608
dialog.h
Go to the documentation of this file.
1 #ifndef DIALOG_H
2 #define DIALOG_H
3 
4 #include "global.h"
5 
9 typedef enum {
10  rt_say = 0,
11  rt_reply = 1,
13 } reply_type;
14 
18 typedef struct struct_dialog_reply {
19  char *reply;
20  char *message;
24 
28 typedef struct struct_dialog_message {
29  char *match;
30  char *message;
34 
38 typedef struct struct_dialog_information {
42 
44 #define MAX_REPLIES 10
45 
46 #define MAX_NPC 5
47 
51 typedef struct talk_info {
52  struct obj *who;
53  const char *text;
61 } talk_info;
62 
63 
64 #endif /* DIALOG_H */
Definition: object.h:274
int npc_msg_count
Definition: dialog.h:59
struct struct_dialog_message struct_dialog_message
struct struct_dialog_information struct_dialog_information
int message_type
Definition: dialog.h:55
sstring message
Definition: dialog.h:54
struct obj * who
Definition: dialog.h:52
sstring replies[MAX_REPLIES]
Definition: dialog.h:58
sstring replies_words[MAX_REPLIES]
Definition: dialog.h:57
char * message
Definition: dialog.h:20
struct struct_dialog_message * next
Definition: dialog.h:32
struct struct_dialog_reply * all_replies
Definition: dialog.h:39
reply_type
Definition: dialog.h:9
int replies_count
Definition: dialog.h:56
#define MAX_REPLIES
Definition: dialog.h:44
struct talk_info talk_info
const char * text
Definition: dialog.h:53
Definition: dialog.h:10
const char * sstring
Definition: global.h:40
#define MAX_NPC
Definition: dialog.h:46
struct struct_dialog_reply * replies
Definition: dialog.h:31
sstring npc_msgs[MAX_NPC]
Definition: dialog.h:60
struct struct_dialog_reply struct_dialog_reply
struct struct_dialog_message * all_messages
Definition: dialog.h:40
struct struct_dialog_reply * next
Definition: dialog.h:22
reply_type type
Definition: dialog.h:21