AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GhoulTargetCheck Class Reference

Public Member Functions

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

Private Attributes

bool _alive
 

Detailed Description

Constructor & Destructor Documentation

◆ GhoulTargetCheck()

GhoulTargetCheck::GhoulTargetCheck ( bool  alive)
inlineexplicit
1492: _alive(alive) {}
bool _alive
Definition: zone_dragonblight.cpp:1498

Member Function Documentation

◆ operator()()

bool GhoulTargetCheck::operator() ( WorldObject object) const
inline
1494 {
1495 return _alive ^ (object->GetTypeId() != TYPEID_UNIT || ((Unit*)object)->GetDisplayId() != 11686);
1496 }
@ TYPEID_UNIT
Definition: ObjectGuid.h:37
Definition: Unit.h:1302

References _alive, and TYPEID_UNIT.

Member Data Documentation

◆ _alive

bool GhoulTargetCheck::_alive
private

Referenced by operator()().