Crossfire Server, Trunk
dialog.h
Go to the documentation of this file.
1 #ifndef DIALOG_H
2 #define DIALOG_H
3 
7 enum reply_type {
8  rt_say = 0,
9  rt_reply = 1,
11 };
12 
17  char *reply;
18  char *message;
21 };
22 
27  char *match;
28  char *message;
31  bool identifies;
32 };
33 
40 };
41 
43 #define MAX_REPLIES 10
44 
45 #define MAX_NPC 5
46 
50 struct talk_info {
51  struct object *who;
52  const char *text;
60 };
61 
62 
63 #endif /* DIALOG_H */
object
Definition: object.h:282
talk_info::replies
sstring replies[MAX_REPLIES]
Definition: dialog.h:57
struct_dialog_reply::next
struct struct_dialog_reply * next
Definition: dialog.h:20
talk_info::replies_words
sstring replies_words[MAX_REPLIES]
Definition: dialog.h:56
talk_info::npc_msg_count
int npc_msg_count
Definition: dialog.h:58
struct_dialog_message::match
char * match
Definition: dialog.h:27
struct_dialog_message::replies
struct struct_dialog_reply * replies
Definition: dialog.h:29
struct_dialog_message::message
char * message
Definition: dialog.h:28
talk_info::message
sstring message
Definition: dialog.h:53
talk_info::replies_count
int replies_count
Definition: dialog.h:55
struct_dialog_message::identifies
bool identifies
Definition: dialog.h:31
struct_dialog_reply::message
char * message
Definition: dialog.h:18
struct_dialog_reply
Definition: dialog.h:16
MAX_NPC
#define MAX_NPC
Definition: dialog.h:45
rt_say
@ rt_say
Definition: dialog.h:8
struct_dialog_information
Definition: dialog.h:37
rt_reply
@ rt_reply
Definition: dialog.h:9
talk_info::text
const char * text
Definition: dialog.h:52
struct_dialog_information::all_messages
struct struct_dialog_message * all_messages
Definition: dialog.h:39
reply_type
reply_type
Definition: dialog.h:7
struct_dialog_reply::reply
char * reply
Definition: dialog.h:17
talk_info::message_type
reply_type message_type
Definition: dialog.h:54
struct_dialog_message
Definition: dialog.h:26
MAX_REPLIES
#define MAX_REPLIES
Definition: dialog.h:43
sstring
const typedef char * sstring
Definition: sstring.h:2
rt_question
@ rt_question
Definition: dialog.h:10
struct_dialog_information::all_replies
struct struct_dialog_reply * all_replies
Definition: dialog.h:38
talk_info
Definition: dialog.h:50
talk_info::npc_msgs
sstring npc_msgs[MAX_NPC]
Definition: dialog.h:59
struct_dialog_message::next
struct struct_dialog_message * next
Definition: dialog.h:30
struct_dialog_reply::type
reply_type type
Definition: dialog.h:19
talk_info::who
struct object * who
Definition: dialog.h:51