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

#include <Object.h>

Public Member Functions

 ObjectDistanceOrderPred (WorldObject const *refObj, bool ascending=true)
 
bool operator() (WorldObject const *left, WorldObject const *right) const
 

Private Attributes

WorldObject const_refObj
 
bool _ascending
 

Constructor & Destructor Documentation

Trinity::ObjectDistanceOrderPred::ObjectDistanceOrderPred ( WorldObject const refObj,
bool  ascending = true 
)
inline
671 : _refObj(refObj), _ascending(ascending) { }
bool _ascending
Definition: Object.h:680
WorldObject const * _refObj
Definition: Object.h:679

Member Function Documentation

bool Trinity::ObjectDistanceOrderPred::operator() ( WorldObject const left,
WorldObject const right 
) const
inline
674  {
675  return _refObj->GetDistanceOrder(left, right) == _ascending;
676  }
bool GetDistanceOrder(WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
Definition: Object.cpp:1680
bool left(const int *a, const int *b, const int *c)
Definition: RecastContour.cpp:487
bool _ascending
Definition: Object.h:680
WorldObject const * _refObj
Definition: Object.h:679

+ Here is the call graph for this function:

Member Data Documentation

bool Trinity::ObjectDistanceOrderPred::_ascending
private
WorldObject const* Trinity::ObjectDistanceOrderPred::_refObj
private

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