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

#include <ulduar.h>

Public Member Functions

bool operator() (WorldObject *object) const
 
bool operator() (WorldObject *object) const
 

Member Function Documentation

bool PlayerOrPetCheck::operator() ( WorldObject object) const
inline
210  {
211  if (object->GetTypeId() == TYPEID_PLAYER)
212  return false;
213 
214  if (Creature* creature = object->ToCreature())
215  return !creature->IsPet();
216 
217  return true;
218  }
Definition: Creature.h:467
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ObjectGuid.h:33
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:

bool PlayerOrPetCheck::operator() ( WorldObject object) const
inline
451  {
452  if (object->GetTypeId() == TYPEID_PLAYER)
453  return false;
454 
455  if (Creature* creature = object->ToCreature())
456  return !creature->IsPet();
457 
458  return true;
459  }
Definition: Creature.h:467
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ObjectGuid.h:33
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


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