TrinityCore
DialogueHelper Class Reference
+ Inheritance diagram for DialogueHelper:

Public Member Functions

 DialogueHelper (DialogueEntry const *dialogueArray)
 
void StartNextDialogueText (int32 textEntry)
 
void DialogueUpdate (uint32 diff)
 

Protected Member Functions

virtual void JustDidDialogueStep (int32)
 Will be called when a dialogue step was done. More...
 
virtual CreatureGetSpeakerByEntry (int32)
 Will be called to get a speaker, MUST be implemented if not used in instances. More...
 

Private Member Functions

void DoNextDialogueStep ()
 

Private Attributes

DialogueEntry const * _dialogueArray
 
DialogueEntry const * _currentEntry
 
uint32 _actionTimer
 

Detailed Description

Definition at line 122 of file zone_winterspring.cpp.

Constructor & Destructor Documentation

◆ DialogueHelper()

DialogueHelper::DialogueHelper ( DialogueEntry const *  dialogueArray)
inline

Definition at line 126 of file zone_winterspring.cpp.

Member Function Documentation

◆ DialogueUpdate()

void DialogueHelper::DialogueUpdate ( uint32  diff)
inline

Definition at line 157 of file zone_winterspring.cpp.

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

◆ DoNextDialogueStep()

void DialogueHelper::DoNextDialogueStep ( )
inlineprivate

Definition at line 175 of file zone_winterspring.cpp.

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

◆ GetSpeakerByEntry()

virtual Creature * DialogueHelper::GetSpeakerByEntry ( int32  )
inlineprotectedvirtual

Will be called to get a speaker, MUST be implemented if not used in instances.

Reimplemented in npc_ranshalla::npc_ranshallaAI.

Definition at line 172 of file zone_winterspring.cpp.

+ Here is the caller graph for this function:

◆ JustDidDialogueStep()

virtual void DialogueHelper::JustDidDialogueStep ( int32  )
inlineprotectedvirtual

Will be called when a dialogue step was done.

Reimplemented in npc_ranshalla::npc_ranshallaAI.

Definition at line 170 of file zone_winterspring.cpp.

+ Here is the caller graph for this function:

◆ StartNextDialogueText()

void DialogueHelper::StartNextDialogueText ( int32  textEntry)
inline

Function to initialize the dialogue helper for instances. If not used with instances, GetSpeakerByEntry MUST be overwritten to obtain the speakers Set if take first entries or second entries

Definition at line 136 of file zone_winterspring.cpp.

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

Member Data Documentation

◆ _actionTimer

uint32 DialogueHelper::_actionTimer
private

Definition at line 206 of file zone_winterspring.cpp.

◆ _currentEntry

DialogueEntry const* DialogueHelper::_currentEntry
private

Definition at line 204 of file zone_winterspring.cpp.

◆ _dialogueArray

DialogueEntry const* DialogueHelper::_dialogueArray
private

Definition at line 203 of file zone_winterspring.cpp.


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