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 enum reply_type {
10  rt_say = 0,
11  rt_reply = 1,
13 };
14 
19  char *reply;
20  char *message;
23 };
24 
29  char *match;
30  char *message;
33  bool identifies;
34 };
35 
42 };
43 
45 #define MAX_REPLIES 10
46 
47 #define MAX_NPC 5
48 
52 struct talk_info {
53  struct object *who;
54  const char *text;
62 };
63 
64 
65 #endif /* DIALOG_H */
object
Definition: object.h:280
global.h
talk_info::replies
sstring replies[MAX_REPLIES]
Definition: dialog.h:59
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:58
talk_info::npc_msg_count
int npc_msg_count
Definition: dialog.h:60
struct_dialog_message::match
char * match
Definition: dialog.h:29
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:55
talk_info::replies_count
int replies_count
Definition: dialog.h:57
struct_dialog_message::identifies
bool identifies
Definition: dialog.h:33
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:47
rt_say
@ rt_say
Definition: dialog.h:10
sstring
const typedef char * sstring
Definition: global.h:47
struct_dialog_information
Definition: dialog.h:39
rt_reply
@ rt_reply
Definition: dialog.h:11
talk_info::text
const char * text
Definition: dialog.h:54
struct_dialog_information::all_messages
struct struct_dialog_message * all_messages
Definition: dialog.h:41
reply_type
reply_type
Definition: dialog.h:9
struct_dialog_reply::reply
char * reply
Definition: dialog.h:19
talk_info::message_type
reply_type message_type
Definition: dialog.h:56
struct_dialog_message
Definition: dialog.h:28
MAX_REPLIES
#define MAX_REPLIES
Definition: dialog.h:45
rt_question
@ rt_question
Definition: dialog.h:12
struct_dialog_information::all_replies
struct struct_dialog_reply * all_replies
Definition: dialog.h:40
talk_info
Definition: dialog.h:52
talk_info::npc_msgs
sstring npc_msgs[MAX_NPC]
Definition: dialog.h:61
struct_dialog_message::next
struct struct_dialog_message * next
Definition: dialog.h:32
struct_dialog_reply::type
reply_type type
Definition: dialog.h:21
talk_info::who
struct object * who
Definition: dialog.h:53