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

#include <GridNotifiers.h>

Public Member Functions

 AnyDeadUnitObjectInRangeCheck (Unit *searchObj, float range)
 
bool operator() (Player *u)
 
bool operator() (Corpse *u)
 
bool operator() (Creature *u)
 
template<class NOT_INTERESTED >
bool operator() (NOT_INTERESTED *)
 

Protected Attributes

Unit const *const i_searchObj
 
float i_range
 

Constructor & Destructor Documentation

Trinity::AnyDeadUnitObjectInRangeCheck::AnyDeadUnitObjectInRangeCheck ( Unit searchObj,
float  range 
)
inline
586 : i_searchObj(searchObj), i_range(range) { }
float i_range
Definition: GridNotifiers.h:593
Unit const *const i_searchObj
Definition: GridNotifiers.h:592

Member Function Documentation

bool AnyDeadUnitObjectInRangeCheck::operator() ( Player *  u)
351 {
352  return !u->IsAlive() && !u->HasAuraType(SPELL_AURA_GHOST) && i_searchObj->IsWithinDistInMap(u, i_range);
353 }
Definition: SpellAuraDefines.h:155
float i_range
Definition: GridNotifiers.h:593
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
Unit const *const i_searchObj
Definition: GridNotifiers.h:592

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool AnyDeadUnitObjectInRangeCheck::operator() ( Corpse u)
356 {
358 }
float i_range
Definition: GridNotifiers.h:593
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
CorpseType GetType() const
Definition: Corpse.h:71
Unit const *const i_searchObj
Definition: GridNotifiers.h:592
Definition: Corpse.h:29

+ Here is the call graph for this function:

bool AnyDeadUnitObjectInRangeCheck::operator() ( Creature u)
361 {
362  return !u->IsAlive() && i_searchObj->IsWithinDistInMap(u, i_range);
363 }
float i_range
Definition: GridNotifiers.h:593
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
bool IsAlive() const
Definition: Unit.h:1692
Unit const *const i_searchObj
Definition: GridNotifiers.h:592

+ Here is the call graph for this function:

template<class NOT_INTERESTED >
bool Trinity::AnyDeadUnitObjectInRangeCheck::operator() ( NOT_INTERESTED *  )
inline
590 { return false; }

Member Data Documentation

float Trinity::AnyDeadUnitObjectInRangeCheck::i_range
protected
Unit const* const Trinity::AnyDeadUnitObjectInRangeCheck::i_searchObj
protected

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