Crossfire Server, Trunk
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 */
global.h
talk_info::replies
sstring replies[MAX_REPLIES]
Definition: dialog.h:58
struct_dialog_reply::next
struct struct_dialog_reply * next
Definition: dialog.h:22
talk_info::replies_words
sstring replies_words[MAX_REPLIES]
Definition: dialog.h:57
talk_info::npc_msg_count
int npc_msg_count
Definition: dialog.h:59
struct_dialog_message
struct struct_dialog_message struct_dialog_message
talk_info::who
struct obj * who
Definition: dialog.h:52
struct_dialog_message::match
char * match
Definition: dialog.h:29
talk_info::message_type
int message_type
Definition: dialog.h:55
struct_dialog_message::replies
struct struct_dialog_reply * replies
Definition: dialog.h:31
struct_dialog_message::message
char * message
Definition: dialog.h:30
talk_info::message
sstring message
Definition: dialog.h:54
talk_info::replies_count
int replies_count
Definition: dialog.h:56
obj
Definition: object.h:275
struct_dialog_information
struct struct_dialog_information struct_dialog_information
struct_dialog_reply
struct struct_dialog_reply struct_dialog_reply
struct_dialog_reply::message
char * message
Definition: dialog.h:20
struct_dialog_reply
Definition: dialog.h:18
MAX_NPC
#define MAX_NPC
Definition: dialog.h:46
rt_say
@ rt_say
Definition: dialog.h:10
sstring
const typedef char * sstring
Definition: global.h:40
struct_dialog_information
Definition: dialog.h:38
rt_reply
@ rt_reply
Definition: dialog.h:11
talk_info::text
const char * text
Definition: dialog.h:53
struct_dialog_information::all_messages
struct struct_dialog_message * all_messages
Definition: dialog.h:40
reply_type
reply_type
Definition: dialog.h:9
struct_dialog_reply::reply
char * reply
Definition: dialog.h:19
struct_dialog_message
Definition: dialog.h:28
MAX_REPLIES
#define MAX_REPLIES
Definition: dialog.h:44
rt_question
@ rt_question
Definition: dialog.h:12
struct_dialog_information::all_replies
struct struct_dialog_reply * all_replies
Definition: dialog.h:39
talk_info
Definition: dialog.h:51
talk_info::npc_msgs
sstring npc_msgs[MAX_NPC]
Definition: dialog.h:60
struct_dialog_message::next
struct struct_dialog_message * next
Definition: dialog.h:32
talk_info
struct talk_info talk_info
struct_dialog_reply::type
reply_type type
Definition: dialog.h:21