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

#include <GridNotifiers.h>

Public Member Functions

 GameObjectInRangeCheck (float _x, float _y, float _z, float _range, uint32 _entry=0)
 
bool operator() (GameObject *go)
 

Private Attributes

float x
 
float y
 
float z
 
float range
 
uint32 entry
 

Constructor & Destructor Documentation

Trinity::GameObjectInRangeCheck::GameObjectInRangeCheck ( float  _x,
float  _y,
float  _z,
float  _range,
uint32  _entry = 0 
)
inline
1304  :
1305  x(_x), y(_y), z(_z), range(_range), entry(_entry) { }
float x
Definition: GridNotifiers.h:1313
float y
Definition: GridNotifiers.h:1313
float z
Definition: GridNotifiers.h:1313
float range
Definition: GridNotifiers.h:1313
uint32 entry
Definition: GridNotifiers.h:1314

Member Function Documentation

bool Trinity::GameObjectInRangeCheck::operator() ( GameObject go)
inline
1307  {
1308  if (!entry || (go->GetGOInfo() && go->GetGOInfo()->entry == entry))
1309  return go->IsInRange(x, y, z, range);
1310  else return false;
1311  }
float x
Definition: GridNotifiers.h:1313
float y
Definition: GridNotifiers.h:1313
float z
Definition: GridNotifiers.h:1313
float range
Definition: GridNotifiers.h:1313
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894
uint32 entry
Definition: GameObject.h:36
bool IsInRange(float x, float y, float z, float radius) const
Definition: GameObject.cpp:1887
uint32 entry
Definition: GridNotifiers.h:1314

+ Here is the call graph for this function:

Member Data Documentation

uint32 Trinity::GameObjectInRangeCheck::entry
private
float Trinity::GameObjectInRangeCheck::range
private
float Trinity::GameObjectInRangeCheck::x
private
float Trinity::GameObjectInRangeCheck::y
private
float Trinity::GameObjectInRangeCheck::z
private

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