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

#include <GridNotifiers.h>

Public Member Functions

 AllGameObjectsWithEntryInRange (const WorldObject *object, uint32 entry, float maxRange)
 
bool operator() (GameObject *go)
 

Private Attributes

const WorldObjectm_pObject
 
uint32 m_uiEntry
 
float m_fRange
 

Constructor & Destructor Documentation

Trinity::AllGameObjectsWithEntryInRange::AllGameObjectsWithEntryInRange ( const WorldObject object,
uint32  entry,
float  maxRange 
)
inline
1251 : m_pObject(object), m_uiEntry(entry), m_fRange(maxRange) { }
uint32 m_uiEntry
Definition: GridNotifiers.h:1261
const WorldObject * m_pObject
Definition: GridNotifiers.h:1260
float m_fRange
Definition: GridNotifiers.h:1262

Member Function Documentation

bool Trinity::AllGameObjectsWithEntryInRange::operator() ( GameObject go)
inline
1253  {
1254  if (go->GetEntry() == m_uiEntry && m_pObject->IsWithinDist(go, m_fRange, false))
1255  return true;
1256 
1257  return false;
1258  }
uint32 m_uiEntry
Definition: GridNotifiers.h:1261
const WorldObject * m_pObject
Definition: GridNotifiers.h:1260
float m_fRange
Definition: GridNotifiers.h:1262
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1658
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

Member Data Documentation

float Trinity::AllGameObjectsWithEntryInRange::m_fRange
private
const WorldObject* Trinity::AllGameObjectsWithEntryInRange::m_pObject
private
uint32 Trinity::AllGameObjectsWithEntryInRange::m_uiEntry
private

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