Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::NearestHostileUnitCheck Class Reference

#include <GridNotifiers.h>

Collaboration diagram for Skyfire::NearestHostileUnitCheck:

Public Member Functions

 NearestHostileUnitCheck (Creature const *creature, float dist=0, bool playerOnly=false)
bool operator() (Unit *u)

Private Member Functions

 NearestHostileUnitCheck (NearestHostileUnitCheck const &)

Private Attributes

bool i_playerOnly
float m_range
Creature const * me

Detailed Description

Definition at line 1035 of file GridNotifiers.h.

Constructor & Destructor Documentation

◆ NearestHostileUnitCheck() [1/2]

Skyfire::NearestHostileUnitCheck::NearestHostileUnitCheck ( Creature const * creature,
float dist = 0,
bool playerOnly = false )
inlineexplicit

Definition at line 1038 of file GridNotifiers.h.

References i_playerOnly, m_range, and me.

Referenced by NearestHostileUnitCheck().

◆ NearestHostileUnitCheck() [2/2]

Skyfire::NearestHostileUnitCheck::NearestHostileUnitCheck ( NearestHostileUnitCheck const & )
private

Member Function Documentation

◆ operator()()

bool Skyfire::NearestHostileUnitCheck::operator() ( Unit * u)
inline

Definition at line 1042 of file GridNotifiers.h.

References Object::GetTypeId(), i_playerOnly, m_range, me, and TYPEID_PLAYER.

Member Data Documentation

◆ i_playerOnly

bool Skyfire::NearestHostileUnitCheck::i_playerOnly
private

Definition at line 1060 of file GridNotifiers.h.

Referenced by NearestHostileUnitCheck(), and operator()().

◆ m_range

float Skyfire::NearestHostileUnitCheck::m_range
private

Definition at line 1059 of file GridNotifiers.h.

Referenced by NearestHostileUnitCheck(), and operator()().

◆ me

Creature const* Skyfire::NearestHostileUnitCheck::me
private

Definition at line 1058 of file GridNotifiers.h.

Referenced by NearestHostileUnitCheck(), and operator()().


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