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

Public Member Functions

 IsCreatureVehicleCheck (bool isVehicle)
 
bool operator() (WorldObject *obj)
 

Private Attributes

bool _isVehicle
 

Constructor & Destructor Documentation

IsCreatureVehicleCheck::IsCreatureVehicleCheck ( bool  isVehicle)
inline
1703 : _isVehicle(isVehicle) { }
bool _isVehicle
Definition: boss_malygos.cpp:1715

Member Function Documentation

bool IsCreatureVehicleCheck::operator() ( WorldObject obj)
inline
1706  {
1707  if (Unit* unit = obj->ToUnit())
1708  if (unit->GetTypeId() == TYPEID_UNIT && unit->GetVehicleKit())
1709  return _isVehicle;
1710 
1711  return !_isVehicle;
1712  }
Definition: ObjectGuid.h:32
bool _isVehicle
Definition: boss_malygos.cpp:1715
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

Member Data Documentation

bool IsCreatureVehicleCheck::_isVehicle
private

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