Crossfire Server, Trunk
talk_info Struct Reference

#include <dialog.h>

+ Collaboration diagram for talk_info:

Data Fields

sstring message
 
reply_type message_type
 
int npc_msg_count
 
sstring npc_msgs [MAX_NPC]
 
sstring replies [MAX_REPLIES]
 
int replies_count
 
sstring replies_words [MAX_REPLIES]
 
const char * text
 
struct objectwho
 

Detailed Description

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

See also
monster_communicate().

Definition at line 50 of file dialog.h.

Field Documentation

◆ message

sstring talk_info::message

If not NULL, what the player will be displayed as said.

Definition at line 53 of file dialog.h.

Referenced by monster_communicate(), monster_do_talk_npc(), and setPlayerMessage().

◆ message_type

reply_type talk_info::message_type

A reply_type value for message.

Definition at line 54 of file dialog.h.

Referenced by monster_communicate(), monster_do_talk_npc(), and setPlayerMessage().

◆ npc_msg_count

int talk_info::npc_msg_count

How many NPCs reacted to the text being said.

Definition at line 58 of file dialog.h.

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

◆ npc_msgs

sstring talk_info::npc_msgs[MAX_NPC]

What the NPCs will say.

Definition at line 59 of file dialog.h.

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

◆ replies

sstring talk_info::replies[MAX_REPLIES]

Description for replies_words.

Definition at line 57 of file dialog.h.

Referenced by addReply(), monster_communicate(), and monster_do_talk_npc().

◆ replies_count

int talk_info::replies_count

How many items in replies_words and replies.

Definition at line 55 of file dialog.h.

Referenced by addReply(), monster_communicate(), and monster_do_talk_npc().

◆ replies_words

sstring talk_info::replies_words[MAX_REPLIES]

Available reply words.

Definition at line 56 of file dialog.h.

Referenced by addReply(), monster_communicate(), and monster_do_talk_npc().

◆ text

const char* talk_info::text

What the player actually said.

Definition at line 52 of file dialog.h.

Referenced by events_execute_object_say(), monster_communicate(), and monster_do_talk_npc().

◆ who

struct object* talk_info::who

Player saying something.

Definition at line 51 of file dialog.h.

Referenced by events_execute_object_say(), monster_communicate(), and monster_talk_to_npc().


The documentation for this struct was generated from the following file: