AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LeechingThrowSelector Struct Reference

Public Member Functions

 LeechingThrowSelector (WorldObject const *source)
 
bool operator() (Unit *unit) const
 

Private Attributes

WorldObject const * _source
 

Detailed Description

Constructor & Destructor Documentation

◆ LeechingThrowSelector()

LeechingThrowSelector::LeechingThrowSelector ( WorldObject const *  source)
inlineexplicit
192: _source(source) { }
WorldObject const * _source
Definition: boss_fathomlord_karathress.cpp:199

Member Function Documentation

◆ operator()()

bool LeechingThrowSelector::operator() ( Unit unit) const
inline
195 {
196 return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) < 50.0f;
197 }
@ POWER_MANA
Definition: SharedDefines.h:269
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Powers getPowerType() const
Definition: Unit.h:888

References _source, WorldObject::GetDistance(), Unit::getPowerType(), and POWER_MANA.

Member Data Documentation

◆ _source

WorldObject const* LeechingThrowSelector::_source
private

Referenced by operator()().