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

#include <GridNotifiers.h>

Public Member Functions

 HeightDifferenceCheck (WorldObject *go, float diff, bool reverse)
 
bool operator() (WorldObject *unit) const
 

Private Attributes

WorldObject_baseObject
 
float _difference
 
bool _reverse
 

Constructor & Destructor Documentation

Trinity::HeightDifferenceCheck::HeightDifferenceCheck ( WorldObject go,
float  diff,
bool  reverse 
)
inline
1361  : _baseObject(go), _difference(diff), _reverse(reverse)
1362  {
1363  }
bool _reverse
Definition: GridNotifiers.h:1373
float _difference
Definition: GridNotifiers.h:1372
WorldObject * _baseObject
Definition: GridNotifiers.h:1371

Member Function Documentation

bool Trinity::HeightDifferenceCheck::operator() ( WorldObject unit) const
inline
1366  {
1367  return (unit->GetPositionZ() - _baseObject->GetPositionZ() > _difference) != _reverse;
1368  }
bool _reverse
Definition: GridNotifiers.h:1373
float GetPositionZ() const
Definition: Position.h:106
float _difference
Definition: GridNotifiers.h:1372
WorldObject * _baseObject
Definition: GridNotifiers.h:1371

+ Here is the call graph for this function:

Member Data Documentation

WorldObject* Trinity::HeightDifferenceCheck::_baseObject
private
float Trinity::HeightDifferenceCheck::_difference
private
bool Trinity::HeightDifferenceCheck::_reverse
private

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