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

#include "GridNotifiers.h"

Public Member Functions

 ObjectTypeIdCheck (TypeID typeId, bool equals)
 
bool operator() (WorldObject const *object)
 

Private Attributes

TypeID _typeId
 
bool _equals
 

Detailed Description

Constructor & Destructor Documentation

◆ ObjectTypeIdCheck()

Acore::ObjectTypeIdCheck::ObjectTypeIdCheck ( TypeID  typeId,
bool  equals 
)
inline
1601: _typeId(typeId), _equals(equals) {}
TypeID _typeId
Definition: GridNotifiers.h:1608
bool _equals
Definition: GridNotifiers.h:1609

Member Function Documentation

◆ operator()()

bool Acore::ObjectTypeIdCheck::operator() ( WorldObject const *  object)
inline
1603 {
1604 return (object->GetTypeId() == _typeId) == _equals;
1605 }

References _equals, _typeId, and Object::GetTypeId().

Member Data Documentation

◆ _equals

bool Acore::ObjectTypeIdCheck::_equals
private

Referenced by operator()().

◆ _typeId

TypeID Acore::ObjectTypeIdCheck::_typeId
private

Referenced by operator()().