AzerothCore 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
180: m_inLiveSide(IN_LIVE_SIDE(pSource)) { }
#define IN_LIVE_SIDE(who)
Definition: boss_gothik.cpp:174
bool m_inLiveSide
Definition: boss_gothik.cpp:188

Member Function Documentation

◆ operator()()

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

References IN_LIVE_SIDE, and m_inLiveSide.

Member Data Documentation

◆ m_inLiveSide

bool NotOnSameSide::m_inLiveSide
private

Referenced by operator()().