DefaultTargetSelector Struct Reference

#include <UnitAICommon.h>

Public Member Functions

 DefaultTargetSelector (Unit const *unit, float dist, bool playerOnly, bool withMainTank, int32 aura)
bool operator() (Unit const *target) const

Private Attributes

Unit const * _me
float _dist
bool _playerOnly
Unit const * _exception
int32 _aura

Detailed Description

Definition at line 49 of file UnitAICommon.h.

Constructor & Destructor Documentation

◆ DefaultTargetSelector()

DefaultTargetSelector::DefaultTargetSelector ( Unit const *  unit,
float  dist,
bool  playerOnly,
bool  withMainTank,
int32  aura 

Definition at line 25 of file UnitAICommon.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 30 of file UnitAICommon.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _aura

int32 DefaultTargetSelector::_aura

Definition at line 64 of file UnitAICommon.h.

◆ _dist

float DefaultTargetSelector::_dist

Definition at line 61 of file UnitAICommon.h.

◆ _exception

Unit const* DefaultTargetSelector::_exception

Definition at line 63 of file UnitAICommon.h.

◆ _me

Unit const* DefaultTargetSelector::_me

Definition at line 60 of file UnitAICommon.h.

◆ _playerOnly

bool DefaultTargetSelector::_playerOnly

Definition at line 62 of file UnitAICommon.h.

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