TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ResetEncounterEvent Class Reference

Public Member Functions

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

Private Attributes

Unit_caster
 
uint32 _spellId
 
ObjectGuid _otherTransport
 

Additional Inherited Members

- Public Attributes inherited from BasicEvent
bool to_Abort
 
uint64 m_addTime
 
uint64 m_execTime
 

Constructor & Destructor Documentation

ResetEncounterEvent::ResetEncounterEvent ( Unit caster,
uint32  spellId,
ObjectGuid  otherTransport 
)
inline
489 : _caster(caster), _spellId(spellId), _otherTransport(otherTransport) { }
uint32 _spellId
Definition: boss_icecrown_gunship_battle.cpp:504
ObjectGuid _otherTransport
Definition: boss_icecrown_gunship_battle.cpp:505
Unit * _caster
Definition: boss_icecrown_gunship_battle.cpp:503

Member Function Documentation

bool ResetEncounterEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

492  {
495 
497  go->AddObjectToRemoveList();
498 
499  return true;
500  }
Definition: Transport.h:28
uint32 _spellId
Definition: boss_icecrown_gunship_battle.cpp:504
void AddObjectToRemoveList()
Definition: Object.cpp:2205
ObjectGuid _otherTransport
Definition: boss_icecrown_gunship_battle.cpp:505
Transport * GetTransport() const
Definition: Object.h:602
Definition: ObjectAccessor.h:45
Unit * _caster
Definition: boss_icecrown_gunship_battle.cpp:503
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

Member Data Documentation

Unit* ResetEncounterEvent::_caster
private
ObjectGuid ResetEncounterEvent::_otherTransport
private
uint32 ResetEncounterEvent::_spellId
private

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