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

Public Member Functions

 ResetEncounterEvent (Unit *caster, uint32 spellId, ObjectGuid otherTransport)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Unit_caster
 
uint32 _spellId
 
ObjectGuid _otherTransport
 

Detailed Description

Constructor & Destructor Documentation

◆ ResetEncounterEvent()

ResetEncounterEvent::ResetEncounterEvent ( Unit caster,
uint32  spellId,
ObjectGuid  otherTransport 
)
inline
518: _caster(caster), _spellId(spellId), _otherTransport(otherTransport) { }
ObjectGuid _otherTransport
Definition boss_icecrown_gunship_battle.cpp:538
Unit * _caster
Definition boss_icecrown_gunship_battle.cpp:536
uint32 _spellId
Definition boss_icecrown_gunship_battle.cpp:537

Member Function Documentation

◆ Execute()

bool ResetEncounterEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

521 {
525
527 {
528 transport->ToMotionTransport()->UnloadNonStaticPassengers();
529 transport->AddObjectToRemoveList();
530 }
531
532 return true;
533 }
MotionTransport * ToMotionTransport()
Definition GameObject.h:326
void UnloadNonStaticPassengers()
Definition Transport.cpp:441
Definition Transport.h:30
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:1179
void AddObjectToRemoveList()
Definition Object.cpp:2160
Transport * GetTransport() const
Definition Object.h:598
Transport * GetTransport(WorldObject const &u, ObjectGuid const guid)
Definition ObjectAccessor.cpp:189

References _caster, _otherTransport, _spellId, WorldObject::AddObjectToRemoveList(), Unit::CastSpell(), WorldObject::GetTransport(), ObjectAccessor::GetTransport(), GameObject::ToMotionTransport(), and MotionTransport::UnloadNonStaticPassengers().

Member Data Documentation

◆ _caster

Unit* ResetEncounterEvent::_caster
private

Referenced by Execute().

◆ _otherTransport

ObjectGuid ResetEncounterEvent::_otherTransport
private

Referenced by Execute().

◆ _spellId

uint32 ResetEncounterEvent::_spellId
private

Referenced by Execute().


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