AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::RaidCheck Class Reference

#include "GridNotifiers.h"

Public Member Functions

 RaidCheck (Unit const *compare, bool equals)
 
bool operator() (WorldObject const *object) const
 

Private Attributes

Unit const * _compare
 
bool const _equals
 

Detailed Description

Constructor & Destructor Documentation

◆ RaidCheck()

Acore::RaidCheck::RaidCheck ( Unit const *  compare,
bool  equals 
)
inlineexplicit
1690: _compare(compare), _equals(equals) { }
Unit const * _compare
Definition: GridNotifiers.h:1697
bool const _equals
Definition: GridNotifiers.h:1698

Member Function Documentation

◆ operator()()

bool Acore::RaidCheck::operator() ( WorldObject const *  object) const
inline
1692 {
1693 return object->ToUnit() && object->ToUnit()->IsInRaidWith(_compare) == _equals;
1694 }

References _compare, and _equals.

Member Data Documentation

◆ _compare

Unit const* Acore::RaidCheck::_compare
private

Referenced by operator()().

◆ _equals

bool const Acore::RaidCheck::_equals
private

Referenced by operator()().