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

Member Function Documentation

◆ operator()()

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

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