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

Public Member Functions

 lapseTeleport (Player *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

Player_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ lapseTeleport()

lapseTeleport::lapseTeleport ( Player owner)
inline
1213 : _owner(owner)
1214 {
1215 }
Player * _owner
Definition: boss_kaelthas.cpp:1230

Member Function Documentation

◆ Execute()

bool lapseTeleport::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1218 {
1221 else if (!_owner->IsBeingTeleported())
1222 {
1225 }
1226 return true;
1227 }
@ SPELL_GRAVITY_LAPSE_KNOCKBACK
Definition: boss_kaelthas.cpp:111
@ SPELL_GRAVITY_LAPSE_AURA
Definition: boss_kaelthas.cpp:112
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:159
bool IsBeingTeleportedNear() const
Definition: Player.h:2071
bool IsBeingTeleported() const
Definition: Player.h:2070
EventProcessor m_Events
Definition: Unit.h:1792
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
Definition: boss_kaelthas.cpp:1211

References _owner, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Unit::CastSpell(), Player::IsBeingTeleported(), Player::IsBeingTeleportedNear(), Unit::m_Events, SPELL_GRAVITY_LAPSE_AURA, and SPELL_GRAVITY_LAPSE_KNOCKBACK.

Member Data Documentation

◆ _owner

Player* lapseTeleport::_owner
private

Referenced by Execute().