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

Public Member Functions

 ActivateLivingConstellation (Unit *owner)
 
bool Execute (uint64 execTime, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 

Private Attributes

Unit_owner
 
InstanceScript_instance
 

Additional Inherited Members

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

Constructor & Destructor Documentation

ActivateLivingConstellation::ActivateLivingConstellation ( Unit owner)
inline
241  : _owner(owner), _instance(owner->GetInstanceScript())
242  {
243  }
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Unit * _owner
Definition: boss_algalon_the_observer.cpp:256
InstanceScript * _instance
Definition: boss_algalon_the_observer.cpp:257

Member Function Documentation

bool ActivateLivingConstellation::Execute ( uint64  execTime,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

246  {
248  return true; // delete event
249 
251  _owner->m_Events.AddEvent(this, execTime + urand(45000, 50000));
252  return false;
253  }
EventProcessor m_Events
Definition: Unit.h:1948
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.cpp:88
arena_t NULL
Definition: jemalloc_internal.h:624
Will ignore most target checks (mostly DBC target checks)
Definition: Unit.h:479
Definition: ulduar.h:45
Definition: boss_algalon_the_observer.cpp:78
Definition: InstanceScript.h:59
Unit * _owner
Definition: boss_algalon_the_observer.cpp:256
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
InstanceScript * _instance
Definition: boss_algalon_the_observer.cpp:257
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227
Definition: Unit.h:1305
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

InstanceScript* ActivateLivingConstellation::_instance
private
Unit* ActivateLivingConstellation::_owner
private

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