TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::ObjectTypeIdCheck Class Reference

#include <GridNotifiers.h>

Public Member Functions

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

Private Attributes

TypeID _typeId
 
bool _equals
 

Constructor & Destructor Documentation

Trinity::ObjectTypeIdCheck::ObjectTypeIdCheck ( TypeID  typeId,
bool  equals 
)
inline
1333 : _typeId(typeId), _equals(equals) { }
TypeID _typeId
Definition: GridNotifiers.h:1340
bool _equals
Definition: GridNotifiers.h:1341

Member Function Documentation

bool Trinity::ObjectTypeIdCheck::operator() ( WorldObject object)
inline
1335  {
1336  return (object->GetTypeId() == _typeId) == _equals;
1337  }
TypeID _typeId
Definition: GridNotifiers.h:1340
bool _equals
Definition: GridNotifiers.h:1341
TypeID GetTypeId() const
Definition: Object.h:113

+ Here is the call graph for this function:

Member Data Documentation

bool Trinity::ObjectTypeIdCheck::_equals
private
TypeID Trinity::ObjectTypeIdCheck::_typeId
private

The documentation for this class was generated from the following file: