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

#include <GridNotifiers.h>

Public Member Functions

 AllWorldObjectsInRange (const WorldObject *object, float maxRange)
 
bool operator() (WorldObject *go)
 

Private Attributes

const WorldObjectm_pObject
 
float m_fRange
 

Constructor & Destructor Documentation

Trinity::AllWorldObjectsInRange::AllWorldObjectsInRange ( const WorldObject object,
float  maxRange 
)
inline
1320 : m_pObject(object), m_fRange(maxRange) { }
float m_fRange
Definition: GridNotifiers.h:1327
const WorldObject * m_pObject
Definition: GridNotifiers.h:1326

Member Function Documentation

bool Trinity::AllWorldObjectsInRange::operator() ( WorldObject go)
inline
1322  {
1323  return m_pObject->IsWithinDist(go, m_fRange, false) && m_pObject->IsInPhase(go);
1324  }
float m_fRange
Definition: GridNotifiers.h:1327
const WorldObject * m_pObject
Definition: GridNotifiers.h:1326
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1658
bool IsInPhase(uint32 phase) const
Definition: Object.h:462

+ Here is the call graph for this function:

Member Data Documentation

float Trinity::AllWorldObjectsInRange::m_fRange
private
const WorldObject* Trinity::AllWorldObjectsInRange::m_pObject
private

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