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

Public Member Functions

 DeathEvent (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

◆ DeathEvent()

DeathEvent::DeathEvent ( Creature owner)
inline
45: BasicEvent(), _owner(owner) { }
BasicEvent()=default
Creature & _owner
Definition: pet_mage.cpp:54

Member Function Documentation

◆ Execute()

bool DeathEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

48 {
50 return true;
51 }
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition: Unit.cpp:17702

References _owner, and Unit::Kill().

Member Data Documentation

◆ _owner

Creature& DeathEvent::_owner
private

Referenced by Execute().