TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DelayedCastEvent Class Reference

Public Member Functions

 DelayedCastEvent (Creature *trigger, uint32 spellId, ObjectGuid originalCaster, uint32 despawnTime)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 

Private Attributes

Creature_trigger
 
ObjectGuid _originalCaster
 
uint32 _spellId
 
uint32 _despawnTime
 

Additional Inherited Members

- Public Attributes inherited from BasicEvent
bool to_Abort
 
uint64 m_addTime
 
uint64 m_execTime
 

Constructor & Destructor Documentation

DelayedCastEvent::DelayedCastEvent ( Creature trigger,
uint32  spellId,
ObjectGuid  originalCaster,
uint32  despawnTime 
)
inline
178  : _trigger(trigger), _originalCaster(originalCaster), _spellId(spellId), _despawnTime(despawnTime)
179  {
180  }
ObjectGuid _originalCaster
Definition: boss_valithria_dreamwalker.cpp:192
Creature * _trigger
Definition: boss_valithria_dreamwalker.cpp:191
uint32 _despawnTime
Definition: boss_valithria_dreamwalker.cpp:194
uint32 _spellId
Definition: boss_valithria_dreamwalker.cpp:193

Member Function Documentation

bool DelayedCastEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

183  {
185  if (_despawnTime)
187  return true;
188  }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
ObjectGuid _originalCaster
Definition: boss_valithria_dreamwalker.cpp:192
arena_t NULL
Definition: jemalloc_internal.h:624
Creature * _trigger
Definition: boss_valithria_dreamwalker.cpp:191
uint32 _despawnTime
Definition: boss_valithria_dreamwalker.cpp:194
uint32 _spellId
Definition: boss_valithria_dreamwalker.cpp:193
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

Member Data Documentation

uint32 DelayedCastEvent::_despawnTime
private
ObjectGuid DelayedCastEvent::_originalCaster
private
uint32 DelayedCastEvent::_spellId
private
Creature* DelayedCastEvent::_trigger
private

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