TrinityCore
Loading...
Searching...
No Matches
PowerUsersSelector Struct Reference

#include <UnitAI.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 105 of file UnitAI.h.

Constructor & Destructor Documentation

◆ PowerUsersSelector()

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

Definition at line 108 of file UnitAI.h.

Member Function Documentation

◆ operator()()

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

Definition at line 453 of file UnitAI.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _dist

float const PowerUsersSelector::_dist
private

Definition at line 114 of file UnitAI.h.

◆ _me

Unit const* PowerUsersSelector::_me
private

Definition at line 112 of file UnitAI.h.

◆ _playerOnly

bool const PowerUsersSelector::_playerOnly
private

Definition at line 115 of file UnitAI.h.

◆ _power

Powers const PowerUsersSelector::_power
private

Definition at line 113 of file UnitAI.h.


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