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
1649: _object(object), _range(range), _equals(equals) { }
WorldObject const * _object
Definition: GridNotifiers.h:1656
float _range
Definition: GridNotifiers.h:1657
bool _equals
Definition: GridNotifiers.h:1658

Member Function Documentation

◆ operator()()

bool Acore::AllWorldObjectsInExactRange::operator() ( WorldObject const *  object)
inline
1651 {
1652 return (_object->GetExactDist2d(object) > _range) == _equals;
1653 }
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:165

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()().