TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ManaVoidSelector Struct Reference

Public Member Functions

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

Public Attributes

WorldObject const_source
 

Constructor & Destructor Documentation

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

Member Function Documentation

bool ManaVoidSelector::operator() ( Unit unit) const
inline
168  {
169  return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) > 15.0f;
170  }
WorldObject const * _source
Definition: boss_valithria_dreamwalker.cpp:172
Powers getPowerType() const
Definition: Unit.h:1444
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1594
Definition: SharedDefines.h:248

+ Here is the call graph for this function:

Member Data Documentation

WorldObject const* ManaVoidSelector::_source

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