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

#include <GridNotifiers.h>

Public Member Functions

 AllFriendlyCreaturesInGrid (Unit const *obj)
 
bool operator() (Unit *u)
 

Private Attributes

Unit constunit
 

Constructor & Destructor Documentation

Trinity::AllFriendlyCreaturesInGrid::AllFriendlyCreaturesInGrid ( Unit const obj)
inline
1236 : unit(obj) { }
Unit const * unit
Definition: GridNotifiers.h:1245

Member Function Documentation

bool Trinity::AllFriendlyCreaturesInGrid::operator() ( Unit u)
inline
1238  {
1239  if (u->IsAlive() && u->IsVisible() && u->IsFriendlyTo(unit))
1240  return true;
1241 
1242  return false;
1243  }
Unit const * unit
Definition: GridNotifiers.h:1245
bool IsAlive() const
Definition: Unit.h:1692
bool IsFriendlyTo(Unit const *unit) const
Definition: Unit.cpp:7170
bool IsVisible() const
Definition: Unit.cpp:10363

+ Here is the call graph for this function:

Member Data Documentation

Unit const* Trinity::AllFriendlyCreaturesInGrid::unit
private

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