TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StoneGripTargetSelector Class Reference

Public Member Functions

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

Public Attributes

Creature_me
 
Unit const_victim
 

Constructor & Destructor Documentation

StoneGripTargetSelector::StoneGripTargetSelector ( Creature me,
Unit const victim 
)
inline
361 : _me(me), _victim(victim) { }
Unit const * _victim
Definition: boss_kologarn.cpp:375
Creature * _me
Definition: boss_kologarn.cpp:374

Member Function Documentation

bool StoneGripTargetSelector::operator() ( WorldObject target)
inline
364  {
365  if (target == _victim && _me->getThreatManager().getThreatList().size() > 1)
366  return true;
367 
368  if (target->GetTypeId() != TYPEID_PLAYER)
369  return true;
370 
371  return false;
372  }
ThreatContainer::StorageType const & getThreatList() const
Definition: ThreatManager.h:263
TypeID GetTypeId() const
Definition: Object.h:113
Unit const * _victim
Definition: boss_kologarn.cpp:375
Creature * _me
Definition: boss_kologarn.cpp:374
Definition: ObjectGuid.h:33
ThreatManager & getThreatManager()
Definition: Unit.h:1998

+ Here is the call graph for this function:

Member Data Documentation

Creature* StoneGripTargetSelector::_me
Unit const* StoneGripTargetSelector::_victim

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