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

Public Member Functions

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

Private Attributes

WorldObject const * _source
 

Detailed Description

Constructor & Destructor Documentation

◆ ManaVoidSelector()

ManaVoidSelector::ManaVoidSelector ( WorldObject const *  source)
inlineexplicit
166: _source(source) { }
WorldObject const * _source
Definition: boss_valithria_dreamwalker.cpp:174

Member Function Documentation

◆ operator()()

bool ManaVoidSelector::operator() ( Unit unit) const
inline
169 {
170 return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) > 15.0f;
171 }
@ POWER_MANA
Definition: SharedDefines.h:269
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
Powers getPowerType() const
Definition: Unit.h:1052

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

Member Data Documentation

◆ _source

WorldObject const* ManaVoidSelector::_source
private

Referenced by operator()().