Crossfire Server, Trunk
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


#define MAX_NPC   5
#define MAX_REPLIES   10


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


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 47 of file dialog.h.


#define MAX_REPLIES   10

How many NPC replies maximum to tell the player.

Definition at line 45 of file dialog.h.

Typedef Documentation

◆ struct_dialog_information

Message information for a NPC.

◆ struct_dialog_message

One message a NPC can react to.

◆ struct_dialog_reply

One reply a NPC can expect.

◆ talk_info

typedef struct talk_info talk_info

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

See also

Enumeration Type Documentation

◆ reply_type

enum reply_type

Various kind of messages a player or NPC can say.


Basic sentence.


Reply to something.


Asking a question.

Definition at line 9 of file dialog.h.