AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
HeightDifferenceCheck Class Reference

Public Member Functions

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

Private Attributes

GameObject_baseObject
 
float _difference
 
bool _reverse
 

Detailed Description

Constructor & Destructor Documentation

◆ HeightDifferenceCheck()

HeightDifferenceCheck::HeightDifferenceCheck ( GameObject go,
float  diff,
bool  reverse 
)
inline
622: _baseObject(go), _difference(diff), _reverse(reverse) {}
GameObject * _baseObject
Definition: boss_the_lich_king.cpp:625
bool _reverse
Definition: boss_the_lich_king.cpp:627
float _difference
Definition: boss_the_lich_king.cpp:626

Member Function Documentation

◆ operator()()

bool HeightDifferenceCheck::operator() ( WorldObject unit) const
inline
623{ return (unit->GetPositionZ() - _baseObject->GetPositionZ() > _difference) != _reverse; }
float GetPositionZ() const
Definition: Position.h:118

References _baseObject, _difference, _reverse, and Position::GetPositionZ().

Member Data Documentation

◆ _baseObject

GameObject* HeightDifferenceCheck::_baseObject
private

Referenced by operator()().

◆ _difference

float HeightDifferenceCheck::_difference
private

Referenced by operator()().

◆ _reverse

bool HeightDifferenceCheck::_reverse
private

Referenced by operator()().