All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::FriendlyCCedInRange Class Reference

#include <GridNotifiers.h>

Public Member Functions

 FriendlyCCedInRange (Unit const *obj, float range)
bool operator() (Unit *u)

Private Attributes

Unit consti_obj
float i_range

Constructor & Destructor Documentation

Trinity::FriendlyCCedInRange::FriendlyCCedInRange ( Unit const obj,
float  range 
763 : i_obj(obj), i_range(range) { }
float i_range
Definition: GridNotifiers.h:775
Unit const * i_obj
Definition: GridNotifiers.h:774

Member Function Documentation

bool Trinity::FriendlyCCedInRange::operator() ( Unit u)
765  {
766  if (u->IsAlive() && u->IsInCombat() && !i_obj->IsHostileTo(u) && i_obj->IsWithinDistInMap(u, i_range) &&
768  {
769  return true;
770  }
771  return false;
772  }
bool IsInCombat() const
Definition: Unit.h:1584
Definition: Unit.h:561
float i_range
Definition: GridNotifiers.h:775
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
bool isFeared() const
Definition: Unit.h:1599
Definition: Unit.h:553
bool IsAlive() const
Definition: Unit.h:1692
bool isFrozen() const
Definition: Unit.cpp:12107
bool IsHostileTo(Unit const *unit) const
Definition: Unit.cpp:7165
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
Unit const * i_obj
Definition: GridNotifiers.h:774
bool IsCharmed() const
Definition: Unit.h:1742

+ Here is the call graph for this function:

Member Data Documentation

Unit const* Trinity::FriendlyCCedInRange::i_obj
float Trinity::FriendlyCCedInRange::i_range

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