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

Public Member Functions

 RespawnEvent (Creature &owner)
 
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
 

Detailed Description

Constructor & Destructor Documentation

◆ RespawnEvent()

RespawnEvent::RespawnEvent ( Creature owner)
inline
168: _owner(owner) { }
Creature & _owner
Definition: instance_icecrown_citadel.cpp:178

Member Function Documentation

◆ Execute()

bool RespawnEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

171 {
172 _owner.RemoveCorpse(false);
173 _owner.Respawn();
174 return true;
175 }
void Respawn(bool force=false)
Definition: Creature.cpp:2030
void RemoveCorpse(bool setSpawnTime=true, bool skipVisibility=false)
Definition: Creature.cpp:401

References _owner, Creature::RemoveCorpse(), and Creature::Respawn().

Member Data Documentation

◆ _owner

Creature& RespawnEvent::_owner
private

Referenced by Execute().