TrinityCore
Loading...
Searching...
No Matches
OrientationCheck Class Reference

Public Member Functions

 OrientationCheck (Unit *_caster)
 
bool operator() (WorldObject *object)
 

Private Attributes

Unitcaster
 

Detailed Description

Definition at line 116 of file boss_argent_challenge.cpp.

Constructor & Destructor Documentation

◆ OrientationCheck()

OrientationCheck::OrientationCheck ( Unit _caster)
inlineexplicit

Definition at line 119 of file boss_argent_challenge.cpp.

119: caster(_caster) { }

Member Function Documentation

◆ operator()()

bool OrientationCheck::operator() ( WorldObject object)
inline

Definition at line 120 of file boss_argent_challenge.cpp.

121 {
122 return !object->isInFront(caster, 2.5f) || !object->IsWithinDist(caster, 40.0f);
123 }

Member Data Documentation

◆ caster

Unit* OrientationCheck::caster
private

Definition at line 126 of file boss_argent_challenge.cpp.


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