AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
KillMagnetEvent Class Reference

#include "TotemAI.h"

Inheritance diagram for KillMagnetEvent:
BasicEvent

Public Member Functions

 KillMagnetEvent (Unit &self)
 
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 ()
 

Protected Attributes

Unit_self
 

Detailed Description

Constructor & Destructor Documentation

◆ KillMagnetEvent()

KillMagnetEvent::KillMagnetEvent ( Unit self)
inline
49: _self(self) { }
Unit & _self
Definition: TotemAI.h:57

Member Function Documentation

◆ Execute()

bool KillMagnetEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

51 {
52 _self.setDeathState(DeathState::JustDied);
53 return true;
54 }
virtual void setDeathState(DeathState s, bool despawn=false)
Definition: Unit.cpp:14553

References _self, and Unit::setDeathState().

Member Data Documentation

◆ _self

Unit& KillMagnetEvent::_self
protected

Referenced by Execute().