AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
NotOnSameSide Struct Reference

Public Member Functions

 NotOnSameSide (Unit *pSource)
 
bool operator() (Unit const *pTarget)
 

Private Attributes

bool m_inLiveSide
 

Detailed Description

Constructor & Destructor Documentation

◆ NotOnSameSide()

NotOnSameSide::NotOnSameSide ( Unit pSource)
inlineexplicit
179: m_inLiveSide(IN_LIVE_SIDE(pSource)) { }
#define IN_LIVE_SIDE(who)
Definition: boss_gothik.cpp:173
bool m_inLiveSide
Definition: boss_gothik.cpp:187

Member Function Documentation

◆ operator()()

bool NotOnSameSide::operator() ( Unit const *  pTarget)
inline
182 {
183 return (m_inLiveSide != IN_LIVE_SIDE(pTarget));
184 }

References IN_LIVE_SIDE, and m_inLiveSide.

Member Data Documentation

◆ m_inLiveSide

bool NotOnSameSide::m_inLiveSide
private

Referenced by operator()().