TrinityCore
FarthestTargetSelector Struct Reference

#include <UnitAICommon.h>

Public Member Functions

 FarthestTargetSelector (Unit const *unit, float dist, bool playerOnly, bool inLos)
 
bool operator() (Unit const *target) const
 

Private Attributes

Unit const * _me
 
float _dist
 
bool _playerOnly
 
bool _inLos
 

Detailed Description

Definition at line 105 of file UnitAICommon.h.

Constructor & Destructor Documentation

◆ FarthestTargetSelector()

FarthestTargetSelector::FarthestTargetSelector ( Unit const *  unit,
float  dist,
bool  playerOnly,
bool  inLos 
)
inline

Definition at line 107 of file UnitAICommon.h.

Member Function Documentation

◆ operator()()

bool FarthestTargetSelector::operator() ( Unit const *  target) const

Definition at line 171 of file UnitAICommon.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _dist

float FarthestTargetSelector::_dist
private

Definition at line 112 of file UnitAICommon.h.

◆ _inLos

bool FarthestTargetSelector::_inLos
private

Definition at line 114 of file UnitAICommon.h.

◆ _me

Unit const* FarthestTargetSelector::_me
private

Definition at line 111 of file UnitAICommon.h.

◆ _playerOnly

bool FarthestTargetSelector::_playerOnly
private

Definition at line 113 of file UnitAICommon.h.


The documentation for this struct was generated from the following files: