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
181: _source(source) { }
WorldObject const * _source
Definition boss_fathomlord_karathress.cpp:188

Member Function Documentation

◆ operator()()

bool LeechingThrowSelector::operator() ( Unit unit) const
inline
184 {
185 return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) < 50.0f;
186 }
@ POWER_MANA
Definition SharedDefines.h:257
Powers getPowerType() const
Definition Unit.h:1132
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1299

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

Member Data Documentation

◆ _source

WorldObject const* LeechingThrowSelector::_source
private

Referenced by operator()().


The documentation for this struct was generated from the following file: