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

Public Member Functions

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

Public Attributes

Creature_me
 
Unit const_victim
 

Constructor & Destructor Documentation

FocusedFireTargetSelector::FocusedFireTargetSelector ( Creature me,
const Unit victim 
)
inline
208 : _me(me), _victim(victim) { }
Creature * _me
Definition: boss_occuthar.cpp:221
Unit const * _victim
Definition: boss_occuthar.cpp:222

Member Function Documentation

bool FocusedFireTargetSelector::operator() ( WorldObject target)
inline
211  {
212  if (target == _victim && _me->getThreatManager().getThreatList().size() > 1)
213  return true;
214 
215  if (target->GetTypeId() != TYPEID_PLAYER)
216  return true;
217 
218  return false;
219  }
Creature * _me
Definition: boss_occuthar.cpp:221
ThreatContainer::StorageType const & getThreatList() const
Definition: ThreatManager.h:263
Unit const * _victim
Definition: boss_occuthar.cpp:222
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* FocusedFireTargetSelector::_me
Unit const* FocusedFireTargetSelector::_victim

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