AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
StoneGripTargetSelector Class Reference

Public Member Functions

 StoneGripTargetSelector (Creature *me, Unit const *victim)
 
bool operator() (WorldObject *target) const
 

Private Attributes

Creature_me
 
Unit const * _victim
 

Detailed Description

Constructor & Destructor Documentation

◆ StoneGripTargetSelector()

StoneGripTargetSelector::StoneGripTargetSelector ( Creature me,
Unit const *  victim 
)
inline
767: _me(me), _victim(victim) {}
Unit const * _victim
Definition boss_kologarn.cpp:782
Creature * _me
Definition boss_kologarn.cpp:781

Member Function Documentation

◆ operator()()

bool StoneGripTargetSelector::operator() ( WorldObject target) const
inline
770 {
771 if (target == _victim && _me->GetThreatMgr().GetThreatListSize() > 1)
772 return true;
773
774 if (!target->IsPlayer())
775 return true;
776
777 return false;
778 }
bool IsPlayer() const
Definition Object.h:200
float GetThreatListSize() const
Definition ThreatMgr.h:221
ThreatMgr & GetThreatMgr()
Definition Unit.h:912

References _me, _victim, ThreatMgr::GetThreatListSize(), Unit::GetThreatMgr(), and Object::IsPlayer().

Member Data Documentation

◆ _me

Creature* StoneGripTargetSelector::_me
private

Referenced by operator()().

◆ _victim

Unit const* StoneGripTargetSelector::_victim
private

Referenced by operator()().


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