AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FrostwingVrykulSearcher Class Reference

Public Member Functions

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

Private Attributes

Creature const * _source
 
float _range
 

Detailed Description

Constructor & Destructor Documentation

◆ FrostwingVrykulSearcher()

FrostwingVrykulSearcher::FrostwingVrykulSearcher ( Creature const *  source,
float  range 
)
inline
343: _source(source), _range(range) {}
float _range
Definition icecrown_citadel.cpp:370
Creature const * _source
Definition icecrown_citadel.cpp:369

Member Function Documentation

◆ operator()()

bool FrostwingVrykulSearcher::operator() ( Unit unit)
inline
346 {
347 if (!unit->IsAlive())
348 return false;
349
350 switch (unit->GetEntry())
351 {
357 break;
358 default:
359 return false;
360 }
361
362 if (!unit->IsWithinDist(_source, _range, false))
363 return false;
364
365 return true;
366 }
uint32 GetEntry() const
Definition Object.h:117
bool IsAlive() const
Definition Unit.h:1793
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
Definition Object.cpp:1376
@ NPC_YMIRJAR_BATTLE_MAIDEN
Definition icecrown_citadel.h:309
@ NPC_YMIRJAR_WARLORD
Definition icecrown_citadel.h:313
@ NPC_YMIRJAR_HUNTRESS
Definition icecrown_citadel.h:312
@ NPC_YMIRJAR_FROSTBINDER
Definition icecrown_citadel.h:311
@ NPC_YMIRJAR_DEATHBRINGER
Definition pit_of_saron.h:104

References _range, _source, Object::GetEntry(), Unit::IsAlive(), WorldObject::IsWithinDist(), NPC_YMIRJAR_BATTLE_MAIDEN, NPC_YMIRJAR_DEATHBRINGER, NPC_YMIRJAR_FROSTBINDER, NPC_YMIRJAR_HUNTRESS, and NPC_YMIRJAR_WARLORD.

Member Data Documentation

◆ _range

float FrostwingVrykulSearcher::_range
private

Referenced by operator()().

◆ _source

Creature const* FrostwingVrykulSearcher::_source
private

Referenced by operator()().


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