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

Member Function Documentation

◆ operator()()

bool FrostwingVrykulSearcher::operator() ( Unit unit)
inline
291 {
292 if (!unit->IsAlive())
293 return false;
294
295 switch (unit->GetEntry())
296 {
302 break;
303 default:
304 return false;
305 }
306
307 if (!unit->IsWithinDist(_source, _range, false))
308 return false;
309
310 return true;
311 }
uint32 GetEntry() const
Definition Object.h:115
bool IsAlive() const
Definition Unit.h:1707
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition Object.cpp:1327
@ NPC_YMIRJAR_BATTLE_MAIDEN
Definition icecrown_citadel.h:299
@ NPC_YMIRJAR_WARLORD
Definition icecrown_citadel.h:303
@ NPC_YMIRJAR_HUNTRESS
Definition icecrown_citadel.h:302
@ NPC_YMIRJAR_FROSTBINDER
Definition icecrown_citadel.h:301
@ 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: