Crossfire Server  1.75.0
dialog.h File Reference

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...
 

Enumerations

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

Functions

void dialog_preparse (object *op)
 

Variables

const char * NPC_DIALOG_ARCH
 

Macro Definition Documentation

◆ MAX_NPC

#define MAX_NPC   5

How many NPCs maximum will reply to the player.

Definition at line 45 of file dialog.h.

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

◆ MAX_REPLIES

#define MAX_REPLIES   10

How many NPC replies maximum to tell the player.

Definition at line 43 of file dialog.h.

Referenced by addReply(), and monster_do_talk_npc().

Enumeration Type Documentation

◆ reply_type

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

Function Documentation

◆ dialog_preparse()

Variable Documentation

◆ NPC_DIALOG_ARCH

const char* NPC_DIALOG_ARCH

Definition at line 28 of file dialog.cpp.

Referenced by annotate_ob(), and dialog_preparse().