TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PowerCheck Class Reference

Public Member Functions

 PowerCheck (Powers const power)
 
bool operator() (WorldObject *obj) const
 

Private Attributes

Powers const _power
 

Constructor & Destructor Documentation

PowerCheck::PowerCheck ( Powers const  power)
inlineexplicit
82 : _power(power) { }
Powers const _power
Definition: spell_priest.cpp:93

Member Function Documentation

bool PowerCheck::operator() ( WorldObject obj) const
inline
85  {
86  if (Unit* target = obj->ToUnit())
87  return target->getPowerType() != _power;
88 
89  return true;
90  }
Powers const _power
Definition: spell_priest.cpp:93
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

Member Data Documentation

Powers const PowerCheck::_power
private

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