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

#include <GridNotifiers.h>

Public Member Functions

 AnyFriendlyUnitInObjectRangeCheck (WorldObject const *obj, Unit const *funit, float range, bool playerOnly=false)
 
bool operator() (Unit *u)
 

Private Attributes

WorldObject consti_obj
 
Unit consti_funit
 
float i_range
 
bool i_playerOnly
 

Constructor & Destructor Documentation

Trinity::AnyFriendlyUnitInObjectRangeCheck::AnyFriendlyUnitInObjectRangeCheck ( WorldObject const obj,
Unit const funit,
float  range,
bool  playerOnly = false 
)
inline
843 : i_obj(obj), i_funit(funit), i_range(range), i_playerOnly(playerOnly) { }
float i_range
Definition: GridNotifiers.h:854
bool i_playerOnly
Definition: GridNotifiers.h:855
WorldObject const * i_obj
Definition: GridNotifiers.h:852
Unit const * i_funit
Definition: GridNotifiers.h:853

Member Function Documentation

bool Trinity::AnyFriendlyUnitInObjectRangeCheck::operator() ( Unit u)
inline
845  {
847  return true;
848  else
849  return false;
850  }
float i_range
Definition: GridNotifiers.h:854
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
TypeID GetTypeId() const
Definition: Object.h:113
bool i_playerOnly
Definition: GridNotifiers.h:855
bool IsAlive() const
Definition: Unit.h:1692
WorldObject const * i_obj
Definition: GridNotifiers.h:852
Unit const * i_funit
Definition: GridNotifiers.h:853
bool IsFriendlyTo(Unit const *unit) const
Definition: Unit.cpp:7170
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

Member Data Documentation

Unit const* Trinity::AnyFriendlyUnitInObjectRangeCheck::i_funit
private
WorldObject const* Trinity::AnyFriendlyUnitInObjectRangeCheck::i_obj
private
bool Trinity::AnyFriendlyUnitInObjectRangeCheck::i_playerOnly
private
float Trinity::AnyFriendlyUnitInObjectRangeCheck::i_range
private

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