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

Member Function Documentation

◆ operator()()

bool FrostwingVrykulSearcher::operator() ( Unit unit)
inline
292 {
293 if (!unit->IsAlive())
294 return false;
295
296 switch (unit->GetEntry())
297 {
303 break;
304 default:
305 return false;
306 }
307
308 if (!unit->IsWithinDist(_source, _range, false))
309 return false;
310
311 return true;
312 }
uint32 GetEntry() const
Definition Object.h:116
bool IsAlive() const
Definition Unit.h:1698
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: