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

#include <Creature.h>

Public Member Functions

 ForcedDespawnDelayEvent (Creature &owner)
 
bool Execute (uint64 e_time, uint32 p_time) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 

Private Attributes

Creaturem_owner
 

Additional Inherited Members

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

Constructor & Destructor Documentation

ForcedDespawnDelayEvent::ForcedDespawnDelayEvent ( Creature owner)
inline
808 : BasicEvent(), m_owner(owner) { }
BasicEvent()
Definition: EventProcessor.h:31
Creature & m_owner
Definition: Creature.h:812

Member Function Documentation

bool ForcedDespawnDelayEvent::Execute ( uint64  e_time,
uint32  p_time 
)
overridevirtual

Reimplemented from BasicEvent.

177 {
178  m_owner.DespawnOrUnsummon(); // since we are here, we are not TempSummon as object type cannot change during runtime
179  return true;
180 }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Creature & m_owner
Definition: Creature.h:812

+ Here is the call graph for this function:

Member Data Documentation

Creature& ForcedDespawnDelayEvent::m_owner
private

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