Crossfire Server, Trunk  R20513
Data Structures | Macros | Typedefs | Enumerations
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
 Message information for a NPC. More...
 
struct  struct_dialog_message
 One message a NPC can react to. More...
 
struct  struct_dialog_reply
 One reply a NPC can expect. More...
 
struct  talk_info
 Structure used to build up dialog information when a player says something. More...
 

Macros

#define MAX_NPC   5
 How many NPCs maximum will reply to the player. More...
 
#define MAX_REPLIES   10
 How many NPC replies maximum to tell the player. More...
 

Typedefs

typedef struct struct_dialog_information struct_dialog_information
 Message information for a NPC. More...
 
typedef struct struct_dialog_message struct_dialog_message
 One message a NPC can react to. More...
 
typedef struct struct_dialog_reply struct_dialog_reply
 One reply a NPC can expect. More...
 
typedef struct talk_info talk_info
 Structure used to build up dialog information when a player says something. More...
 

Enumerations

enum  reply_type { rt_say = 0, rt_reply = 1, rt_question = 2 }
 Various kind of messages a player or NPC can say. More...
 

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.