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

Public Member Functions

 OrbsDespawner (Creature *creature)
 
bool Execute (uint64, uint32) override
 
void operator() (Creature *creature) const
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 

Private Attributes

Creature_creature
 

Additional Inherited Members

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

Constructor & Destructor Documentation

OrbsDespawner::OrbsDespawner ( Creature creature)
inlineexplicit
131  : _creature(creature)
132  {
133  }
Creature * _creature
Definition: boss_twin_valkyr.cpp:156

Member Function Documentation

bool OrbsDespawner::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

136  {
138  _creature->VisitNearbyGridObject(5000.0f, worker);
139  return true;
140  }
Definition: GridNotifiers.h:474
void VisitNearbyGridObject(float const &radius, NOTIFIER &notifier) const
Definition: Object.h:588
Creature * _creature
Definition: boss_twin_valkyr.cpp:156

+ Here is the call graph for this function:

void OrbsDespawner::operator() ( Creature creature) const
inline
143  {
144  switch (creature->GetEntry())
145  {
146  case NPC_BULLET_DARK:
147  case NPC_BULLET_LIGHT:
148  creature->DespawnOrUnsummon();
149  return;
150  default:
151  return;
152  }
153  }
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Definition: boss_twin_valkyr.cpp:57
Definition: boss_twin_valkyr.cpp:58
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

Member Data Documentation

Creature* OrbsDespawner::_creature
private

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