Crossfire Server, Trunk
dialog.h File Reference
+ 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
 

Enumerations

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

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.

◆ MAX_REPLIES

#define MAX_REPLIES   10

How many NPC replies maximum to tell the player.

Definition at line 43 of file dialog.h.

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()

void dialog_preparse ( object op)

Definition at line 110 of file dialog.cpp.

References BITMASK_VALID, create_archetype(), is_cfdialog(), NPC_DIALOG_ARCH, object_find_by_arch_name(), object_insert_in_ob(), give::op, and Ice::tmp.

Referenced by monster_talk_to_npc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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