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

Public Member Functions

 FrostwingVrykulSearcher (Creature const *source, float range)
 
bool operator() (Unit *unit)
 

Private Attributes

Creature const_source
 
float _range
 

Constructor & Destructor Documentation

FrostwingVrykulSearcher::FrostwingVrykulSearcher ( Creature const source,
float  range 
)
inline
291 : _source(source), _range(range) { }
float _range
Definition: icecrown_citadel.cpp:318
Creature const * _source
Definition: icecrown_citadel.cpp:317

Member Function Documentation

bool FrostwingVrykulSearcher::operator() ( Unit unit)
inline
294  {
295  if (!unit->IsAlive())
296  return false;
297 
298  switch (unit->GetEntry())
299  {
304  case NPC_YMIRJAR_WARLORD:
305  break;
306  default:
307  return false;
308  }
309 
310  if (!unit->IsWithinDist(_source, _range, false))
311  return false;
312 
313  return true;
314  }
Definition: icecrown_citadel.h:270
float _range
Definition: icecrown_citadel.cpp:318
Definition: pit_of_saron.h:88
Creature const * _source
Definition: icecrown_citadel.cpp:317
Definition: icecrown_citadel.h:266
Definition: icecrown_citadel.h:269
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1658
bool IsAlive() const
Definition: Unit.h:1692
Definition: icecrown_citadel.h:268
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

Member Data Documentation

float FrostwingVrykulSearcher::_range
private
Creature const* FrostwingVrykulSearcher::_source
private

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