Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DialogueHelper Class Reference
Inheritance diagram for DialogueHelper:
Collaboration diagram for DialogueHelper:

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

void DoNextDialogueStep ()

Private Attributes

uint32 _actionTimer
DialogueEntry const * _currentEntry
DialogueEntry const * _dialogueArray

Detailed Description

Definition at line 141 of file zone_winterspring.cpp.

Constructor & Destructor Documentation

◆ DialogueHelper()

DialogueHelper::DialogueHelper ( DialogueEntry const * dialogueArray)
inline

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 191 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 189 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 155 of file zone_winterspring.cpp.

References _currentEntry, _dialogueArray, and DoNextDialogueStep().

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 225 of file zone_winterspring.cpp.

Referenced by DialogueHelper(), DialogueUpdate(), and DoNextDialogueStep().

◆ _currentEntry

DialogueEntry const* DialogueHelper::_currentEntry
private

◆ _dialogueArray

DialogueEntry const* DialogueHelper::_dialogueArray
private

Definition at line 222 of file zone_winterspring.cpp.

Referenced by DialogueHelper(), and StartNextDialogueText().


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