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

#include <GridNotifiers.h>

Public Member Functions

 UnitAuraCheck (bool present, uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty)
 
bool operator() (Unit *unit) const
 
bool operator() (WorldObject *object) const
 

Private Attributes

bool _present
 
uint32 _spellId
 
ObjectGuid _casterGUID
 

Constructor & Destructor Documentation

Trinity::UnitAuraCheck::UnitAuraCheck ( bool  present,
uint32  spellId,
ObjectGuid  casterGUID = ObjectGuid::Empty 
)
inline
1379 : _present(present), _spellId(spellId), _casterGUID(casterGUID) { }
bool _present
Definition: GridNotifiers.h:1391
ObjectGuid _casterGUID
Definition: GridNotifiers.h:1393
uint32 _spellId
Definition: GridNotifiers.h:1392

Member Function Documentation

bool Trinity::UnitAuraCheck::operator() ( Unit unit) const
inline
1381  {
1382  return unit->HasAura(_spellId, _casterGUID) == _present;
1383  }
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
bool _present
Definition: GridNotifiers.h:1391
ObjectGuid _casterGUID
Definition: GridNotifiers.h:1393
uint32 _spellId
Definition: GridNotifiers.h:1392

+ Here is the call graph for this function:

bool Trinity::UnitAuraCheck::operator() ( WorldObject object) const
inline
1386  {
1387  return object->ToUnit() && object->ToUnit()->HasAura(_spellId, _casterGUID) == _present;
1388  }
bool _present
Definition: GridNotifiers.h:1391
ObjectGuid _casterGUID
Definition: GridNotifiers.h:1393
uint32 _spellId
Definition: GridNotifiers.h:1392

Member Data Documentation

ObjectGuid Trinity::UnitAuraCheck::_casterGUID
private
bool Trinity::UnitAuraCheck::_present
private
uint32 Trinity::UnitAuraCheck::_spellId
private

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