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

Public Member Functions

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

Public Attributes

Creature_me
 
Unit const_victim
 

Constructor & Destructor Documentation

DevastatingSlamTargetSelector::DevastatingSlamTargetSelector ( Creature me,
const Unit victim 
)
inline
552 : _me(me), _victim(victim) {}
Unit const * _victim
Definition: boss_mandokir.cpp:566
Creature * _me
Definition: boss_mandokir.cpp:565

Member Function Documentation

bool DevastatingSlamTargetSelector::operator() ( WorldObject target)
inline
555  {
556  if (target == _victim && _me->getThreatManager().getThreatList().size() > 1)
557  return true;
558 
559  if (target->GetTypeId() != TYPEID_PLAYER)
560  return true;
561 
562  return false;
563  }
ThreatContainer::StorageType const & getThreatList() const
Definition: ThreatManager.h:263
Unit const * _victim
Definition: boss_mandokir.cpp:566
Creature * _me
Definition: boss_mandokir.cpp:565
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ObjectGuid.h:33
ThreatManager & getThreatManager()
Definition: Unit.h:1998

+ Here is the call graph for this function:

Member Data Documentation

Creature* DevastatingSlamTargetSelector::_me
Unit const* DevastatingSlamTargetSelector::_victim

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