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

Public Member Functions

 BehindObjectCheck (Unit *caster, std::list< GameObject * > objectList)
 
bool operator() (WorldObject *unit)
 

Private Attributes

Unitcaster
 
std::list< GameObject * > objectList
 

Constructor & Destructor Documentation

BehindObjectCheck::BehindObjectCheck ( Unit caster,
std::list< GameObject * >  objectList 
)
inline
538 : caster(caster), objectList(objectList) { }
std::list< GameObject * > objectList
Definition: boss_slabhide.cpp:550
Unit * caster
Definition: boss_slabhide.cpp:549

Member Function Documentation

bool BehindObjectCheck::operator() ( WorldObject unit)
inline
541  {
542  for (std::list<GameObject*>::const_iterator itr = objectList.begin(); itr != objectList.end(); ++itr)
543  if (!(*itr)->IsInvisibleDueToDespawn() && (*itr)->IsInBetween(caster, unit, 1.5f))
544  return true;
545  return false;
546  }
std::list< GameObject * > objectList
Definition: boss_slabhide.cpp:550
Unit * caster
Definition: boss_slabhide.cpp:549

Member Data Documentation

Unit* BehindObjectCheck::caster
private
std::list<GameObject*> BehindObjectCheck::objectList
private

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