TrinityCore
Loading...
Searching...
No Matches
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.
 
virtual Creature * GetSpeakerByEntry (int32)
 Will be called to get a speaker, MUST be implemented if not used in instances.
 

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

◆ DoNextDialogueStep()

void DialogueHelper::DoNextDialogueStep ( )
inlineprivate

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

Referenced by DoNextDialogueStep().

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

Referenced by DoNextDialogueStep().

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

References _currentEntry, _dialogueArray, DoNextDialogueStep(), and DialogueEntry::TextEntry.

Referenced by npc_ranshalla::npc_ranshallaAI::SummonedMovementInform(), npc_ranshalla::npc_ranshallaAI::UpdateEscortAI(), and npc_ranshalla::npc_ranshallaAI::WaypointReached().

Member Data Documentation

◆ _actionTimer

uint32 DialogueHelper::_actionTimer
private

Definition at line 206 of file zone_winterspring.cpp.

Referenced by DialogueUpdate(), and DoNextDialogueStep().

◆ _currentEntry

DialogueEntry const* DialogueHelper::_currentEntry
private

Definition at line 204 of file zone_winterspring.cpp.

Referenced by DoNextDialogueStep(), and StartNextDialogueText().

◆ _dialogueArray

DialogueEntry const* DialogueHelper::_dialogueArray
private

Definition at line 203 of file zone_winterspring.cpp.

Referenced by StartNextDialogueText().


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