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

Public Member Functions

 RaidCheck (Unit const *caster)
 
bool operator() (WorldObject *obj) const
 
 RaidCheck (Unit const *caster)
 
bool operator() (WorldObject *obj) const
 

Private Attributes

Unit const_caster
 

Constructor & Destructor Documentation

RaidCheck::RaidCheck ( Unit const caster)
inlineexplicit
1108 : _caster(caster) { }
Unit const * _caster
Definition: spell_druid.cpp:1119
RaidCheck::RaidCheck ( Unit const caster)
inlineexplicit
99 : _caster(caster) { }
Unit const * _caster
Definition: spell_druid.cpp:1119

Member Function Documentation

bool RaidCheck::operator() ( WorldObject obj) const
inline
102  {
103  if (Unit* target = obj->ToUnit())
104  return !_caster->IsInRaidWith(target);
105 
106  return true;
107  }
Unit const * _caster
Definition: spell_druid.cpp:1119
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:14391
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

bool RaidCheck::operator() ( WorldObject obj) const
inline
1111  {
1112  if (Unit* target = obj->ToUnit())
1113  return !_caster->IsInRaidWith(target);
1114 
1115  return true;
1116  }
Unit const * _caster
Definition: spell_druid.cpp:1119
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:14391
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

Member Data Documentation

Unit const * RaidCheck::_caster
private

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