AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DelayedTalk Class Reference
Inheritance diagram for DelayedTalk:
BasicEvent

Public Member Functions

 DelayedTalk (Creature *owner, uint32 talkId)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool Execute (uint64, uint32)
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Creature_owner
 
uint32 _talkId
 

Detailed Description

Constructor & Destructor Documentation

◆ DelayedTalk()

DelayedTalk::DelayedTalk ( Creature owner,
uint32  talkId 
)
inline
92: _owner(owner), _talkId(talkId) { }
uint32 _talkId
Definition: boss_baltharus_the_warborn.cpp:102
Creature * _owner
Definition: boss_baltharus_the_warborn.cpp:101

Member Function Documentation

◆ Execute()

bool DelayedTalk::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

95 {
96 _owner->AI()->Talk(_talkId);
97 return true;
98 }
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition: CreatureAI.cpp:50
CreatureAI * AI() const
Definition: Creature.h:142

References _owner, _talkId, Creature::AI(), and CreatureAI::Talk().

Member Data Documentation

◆ _owner

Creature* DelayedTalk::_owner
private

Referenced by Execute().

◆ _talkId

uint32 DelayedTalk::_talkId
private

Referenced by Execute().