AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::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
 

Detailed Description

Constructor & Destructor Documentation

◆ GameObjectInRangeCheck()

Acore::GameObjectInRangeCheck::GameObjectInRangeCheck ( float  _x,
float  _y,
float  _z,
float  _range,
uint32  _entry = 0 
)
inline
1572 :
1573 x(_x), y(_y), z(_z), range(_range), entry(_entry) {}
float z
Definition: GridNotifiers.h:1581
uint32 entry
Definition: GridNotifiers.h:1582
float y
Definition: GridNotifiers.h:1581
float range
Definition: GridNotifiers.h:1581
float x
Definition: GridNotifiers.h:1581

Member Function Documentation

◆ operator()()

bool Acore::GameObjectInRangeCheck::operator() ( GameObject go)
inline
1575 {
1576 if (!entry || (go->GetGOInfo() && go->GetGOInfo()->entry == entry))
1577 return go->IsInRange(x, y, z, range);
1578 else return false;
1579 }
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:137
bool IsInRange(float x, float y, float z, float radius) const
Definition: GameObject.cpp:2158
uint32 entry
Definition: GameObjectData.h:33

References GameObjectTemplate::entry, entry, GameObject::GetGOInfo(), GameObject::IsInRange(), range, x, y, and z.

Member Data Documentation

◆ entry

uint32 Acore::GameObjectInRangeCheck::entry
private

Referenced by operator()().

◆ range

float Acore::GameObjectInRangeCheck::range
private

Referenced by operator()().

◆ x

float Acore::GameObjectInRangeCheck::x
private

Referenced by operator()().

◆ y

float Acore::GameObjectInRangeCheck::y
private

Referenced by operator()().

◆ z

float Acore::GameObjectInRangeCheck::z
private

Referenced by operator()().