OregonCore  revision be9e804-git
Your Favourite TBC server
Oregon::ObjectDistanceOrderPred Class Reference

#include <Object.h>

Public Member Functions

 ObjectDistanceOrderPred (const WorldObject *pRefObj, bool ascending=true)
bool operator() (const WorldObject *pLeft, const WorldObject *pRight) const

Private Attributes

const WorldObjectm_refObj
const bool m_ascending

Detailed Description

Definition at line 932 of file Object.h.

Constructor & Destructor Documentation

Oregon::ObjectDistanceOrderPred::ObjectDistanceOrderPred ( const WorldObject pRefObj,
bool  ascending = true 

Definition at line 935 of file Object.h.

935 : m_refObj(pRefObj), m_ascending(ascending) {}
const WorldObject * m_refObj
Definition: Object.h:941

Member Function Documentation

bool Oregon::ObjectDistanceOrderPred::operator() ( const WorldObject pLeft,
const WorldObject pRight 
) const

Definition at line 936 of file Object.h.

937  {
938  return m_ascending ? m_refObj->GetDistanceOrder(pLeft, pRight) : !m_refObj->GetDistanceOrder(pLeft, pRight);
939  }
bool GetDistanceOrder(WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
Definition: Object.cpp:1299
const WorldObject * m_refObj
Definition: Object.h:941

Member Data Documentation

const bool Oregon::ObjectDistanceOrderPred::m_ascending

Definition at line 942 of file Object.h.

const WorldObject* Oregon::ObjectDistanceOrderPred::m_refObj

Definition at line 941 of file Object.h.

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