AzerothCore 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
1691: _compare(compare), _equals(equals) { }
Unit const * _compare
Definition: GridNotifiers.h:1698
bool const _equals
Definition: GridNotifiers.h:1699

Member Function Documentation

◆ operator()()

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

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()().