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

Public Member Functions

 ExactDistanceCheck (Unit *source, float dist)
 
bool operator() (WorldObject *unit) const
 
 ExactDistanceCheck (Unit *source, float dist)
 
bool operator() (WorldObject *unit)
 
 ExactDistanceCheck (Unit *source, float dist)
 
bool operator() (WorldObject *unit)
 

Private Attributes

Unit_source
 
float _dist
 

Constructor & Destructor Documentation

ExactDistanceCheck::ExactDistanceCheck ( Unit source,
float  dist 
)
inline
932 : _source(source), _dist(dist) { }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float _dist
Definition: boss_professor_putricide.cpp:941
ExactDistanceCheck::ExactDistanceCheck ( Unit source,
float  dist 
)
inline
2376 : _source(source), _dist(dist) { }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float _dist
Definition: boss_professor_putricide.cpp:941
ExactDistanceCheck::ExactDistanceCheck ( Unit source,
float  dist 
)
inline
1882 : _source(source), _dist(dist) { }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float _dist
Definition: boss_professor_putricide.cpp:941

Member Function Documentation

bool ExactDistanceCheck::operator() ( WorldObject unit) const
inline
935  {
936  return _source->GetExactDist2d(unit) > _dist;
937  }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:137
float _dist
Definition: boss_professor_putricide.cpp:941

+ Here is the call graph for this function:

bool ExactDistanceCheck::operator() ( WorldObject unit)
inline
1885  {
1886  return _source->GetExactDist2d(unit) > _dist;
1887  }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:137
float _dist
Definition: boss_professor_putricide.cpp:941

+ Here is the call graph for this function:

bool ExactDistanceCheck::operator() ( WorldObject unit)
inline
2379  {
2380  return _source->GetExactDist2d(unit) > _dist;
2381  }
Unit * _source
Definition: boss_professor_putricide.cpp:940
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:137
float _dist
Definition: boss_professor_putricide.cpp:941

+ Here is the call graph for this function:

Member Data Documentation

float ExactDistanceCheck::_dist
private
Unit * ExactDistanceCheck::_source
private

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