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
286: _source(source), _range(range) {}
float _range
Definition: icecrown_citadel.cpp:313
Creature const * _source
Definition: icecrown_citadel.cpp:312

Member Function Documentation

◆ operator()()

bool FrostwingVrykulSearcher::operator() ( Unit unit)
inline
289 {
290 if (!unit->IsAlive())
291 return false;
292
293 switch (unit->GetEntry())
294 {
300 break;
301 default:
302 return false;
303 }
304
305 if (!unit->IsWithinDist(_source, _range, false))
306 return false;
307
308 return true;
309 }
@ NPC_YMIRJAR_DEATHBRINGER
Definition: pit_of_saron.h:104
@ NPC_YMIRJAR_BATTLE_MAIDEN
Definition: icecrown_citadel.h:297
@ NPC_YMIRJAR_WARLORD
Definition: icecrown_citadel.h:301
@ NPC_YMIRJAR_HUNTRESS
Definition: icecrown_citadel.h:300
@ NPC_YMIRJAR_FROSTBINDER
Definition: icecrown_citadel.h:299
uint32 GetEntry() const
Definition: Object.h:109
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1316
bool IsAlive() const
Definition: Unit.h:1808

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()().