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

Public Member Functions

 SkarvaldChargePredicate (Unit *unit)
 
bool operator() (WorldObject *target) const
 

Private Attributes

Unit_me
 

Constructor & Destructor Documentation

SkarvaldChargePredicate::SkarvaldChargePredicate ( Unit unit)
inline
81 : _me(unit) { }
Unit * _me
Definition: boss_skarvald_dalronn.cpp:89

Member Function Documentation

bool SkarvaldChargePredicate::operator() ( WorldObject target) const
inline
84  {
85  return target->GetDistance2d(_me) >= 5.0f && target->GetDistance2d(_me) <= 30.0f;
86  }
Unit * _me
Definition: boss_skarvald_dalronn.cpp:89
float GetDistance2d(WorldObject const *obj) const
Definition: Object.cpp:1612

+ Here is the call graph for this function:

Member Data Documentation

Unit* SkarvaldChargePredicate::_me
private

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