AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::AllWorldObjectsInExactRange Class Reference

#include "GridNotifiers.h"

Public Member Functions

 AllWorldObjectsInExactRange (WorldObject const *object, float range, bool equals)
 
bool operator() (WorldObject const *object)
 

Private Attributes

WorldObject const * _object
 
float _range
 
bool _equals
 

Detailed Description

Constructor & Destructor Documentation

◆ AllWorldObjectsInExactRange()

Acore::AllWorldObjectsInExactRange::AllWorldObjectsInExactRange ( WorldObject const *  object,
float  range,
bool  equals 
)
inline
1645: _object(object), _range(range), _equals(equals) { }
WorldObject const * _object
Definition: GridNotifiers.h:1652
float _range
Definition: GridNotifiers.h:1653
bool _equals
Definition: GridNotifiers.h:1654

Member Function Documentation

◆ operator()()

bool Acore::AllWorldObjectsInExactRange::operator() ( WorldObject const *  object)
inline
1647 {
1648 return (_object->GetExactDist2d(object) > _range) == _equals;
1649 }
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:166

References _equals, _object, _range, and Position::GetExactDist2d().

Member Data Documentation

◆ _equals

bool Acore::AllWorldObjectsInExactRange::_equals
private

Referenced by operator()().

◆ _object

WorldObject const* Acore::AllWorldObjectsInExactRange::_object
private

Referenced by operator()().

◆ _range

float Acore::AllWorldObjectsInExactRange::_range
private

Referenced by operator()().