AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::ObjectGUIDCheck Class Reference

#include "GridNotifiers.h"

Public Member Functions

 ObjectGUIDCheck (ObjectGuid GUID, bool equals)
 
bool operator() (WorldObject const *object)
 

Private Attributes

ObjectGuid _GUID
 
bool _equals
 

Detailed Description

Constructor & Destructor Documentation

◆ ObjectGUIDCheck()

Acore::ObjectGUIDCheck::ObjectGUIDCheck ( ObjectGuid  GUID,
bool  equals 
)
inline
1615: _GUID(GUID), _equals(equals) {}
ObjectGuid _GUID
Definition: GridNotifiers.h:1622
bool _equals
Definition: GridNotifiers.h:1623

Member Function Documentation

◆ operator()()

bool Acore::ObjectGUIDCheck::operator() ( WorldObject const *  object)
inline
1617 {
1618 return (object->GetGUID() == _GUID) == _equals;
1619 }

References _equals, _GUID, and Object::GetGUID().

Member Data Documentation

◆ _equals

bool Acore::ObjectGUIDCheck::_equals
private

Referenced by operator()().

◆ _GUID

ObjectGuid Acore::ObjectGUIDCheck::_GUID
private

Referenced by operator()().