TrinityCore
PowerUsersSelector Struct Reference

#include <UnitAICommon.h>

Public Member Functions

 PowerUsersSelector (Unit const *unit, Powers power, float dist, bool playerOnly)
 
bool operator() (Unit const *target) const
 

Private Attributes

Unit const * _me
 
Powers const _power
 
float const _dist
 
bool const _playerOnly
 

Detailed Description

Definition at line 93 of file UnitAICommon.h.

Constructor & Destructor Documentation

◆ PowerUsersSelector()

PowerUsersSelector::PowerUsersSelector ( Unit const *  unit,
Powers  power,
float  dist,
bool  playerOnly 
)
inline

Definition at line 95 of file UnitAICommon.h.

Member Function Documentation

◆ operator()()

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

Definition at line 151 of file UnitAICommon.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _dist

float const PowerUsersSelector::_dist
private

Definition at line 101 of file UnitAICommon.h.

◆ _me

Unit const* PowerUsersSelector::_me
private

Definition at line 99 of file UnitAICommon.h.

◆ _playerOnly

bool const PowerUsersSelector::_playerOnly
private

Definition at line 102 of file UnitAICommon.h.

◆ _power

Powers const PowerUsersSelector::_power
private

Definition at line 100 of file UnitAICommon.h.


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