Crossfire Server, Trunk  R20708
dialog.h File Reference
#include "global.h"
+ Include dependency graph for dialog.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  struct_dialog_information
 
struct  struct_dialog_message
 
struct  struct_dialog_reply
 
struct  talk_info
 

Macros

#define MAX_NPC   5
 
#define MAX_REPLIES   10
 

Typedefs

typedef struct
struct_dialog_information 
struct_dialog_information
 
typedef struct
struct_dialog_message 
struct_dialog_message
 
typedef struct struct_dialog_reply struct_dialog_reply
 
typedef struct talk_info talk_info
 

Enumerations

enum  reply_type { rt_say = 0, rt_reply = 1, rt_question = 2 }
 

Macro Definition Documentation

#define MAX_NPC   5

How many NPCs maximum will reply to the player.

Definition at line 46 of file dialog.h.

Referenced by Crossfire_Object_Say(), monster_do_talk_npc(), and npcSay().

#define MAX_REPLIES   10

How many NPC replies maximum to tell the player.

Definition at line 44 of file dialog.h.

Referenced by addReply(), and monster_do_talk_npc().

Typedef Documentation

Message information for a NPC.

One message a NPC can react to.

One reply a NPC can expect.

typedef struct talk_info talk_info

Structure used to build up dialog information when a player says something.

See Also
monster_communicate().

Enumeration Type Documentation

enum reply_type

Various kind of messages a player or NPC can say.

Enumerator
rt_say 

Basic sentence.

rt_reply 

Reply to something.

rt_question 

Asking a question.

Definition at line 9 of file dialog.h.