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

#include <GridNotifiers.h>

Public Member Functions

 AllCreaturesOfEntryInRange (const WorldObject *object, uint32 entry, float maxRange)
 
bool operator() (Unit *unit)
 

Private Attributes

const WorldObjectm_pObject
 
uint32 m_uiEntry
 
float m_fRange
 

Constructor & Destructor Documentation

Trinity::AllCreaturesOfEntryInRange::AllCreaturesOfEntryInRange ( const WorldObject object,
uint32  entry,
float  maxRange 
)
inline
1268 : m_pObject(object), m_uiEntry(entry), m_fRange(maxRange) { }
float m_fRange
Definition: GridNotifiers.h:1280
uint32 m_uiEntry
Definition: GridNotifiers.h:1279
const WorldObject * m_pObject
Definition: GridNotifiers.h:1278

Member Function Documentation

bool Trinity::AllCreaturesOfEntryInRange::operator() ( Unit unit)
inline
1270  {
1271  if (unit->GetEntry() == m_uiEntry && m_pObject->IsWithinDist(unit, m_fRange, false))
1272  return true;
1273 
1274  return false;
1275  }
float m_fRange
Definition: GridNotifiers.h:1280
uint32 m_uiEntry
Definition: GridNotifiers.h:1279
bool IsWithinDist(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1658
const WorldObject * m_pObject
Definition: GridNotifiers.h:1278
uint32 GetEntry() const
Definition: Object.h:107

+ Here is the call graph for this function:

Member Data Documentation

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

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