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

Public Member Functions

 IsPlayerOnHoverDisk (bool isOnHoverDisk)
 
bool operator() (WorldObject *obj)
 

Private Attributes

bool _isOnHoverDisk
 

Constructor & Destructor Documentation

IsPlayerOnHoverDisk::IsPlayerOnHoverDisk ( bool  isOnHoverDisk)
inline
1963 : _isOnHoverDisk(isOnHoverDisk) { }
bool _isOnHoverDisk
Definition: boss_malygos.cpp:1975

Member Function Documentation

bool IsPlayerOnHoverDisk::operator() ( WorldObject obj)
inline
1966  {
1967  if (Unit* passenger = obj->ToUnit())
1968  if (passenger->GetVehicleBase() && passenger->GetVehicleBase()->GetEntry() == NPC_HOVER_DISK_MELEE)
1969  return _isOnHoverDisk;
1970 
1971  return !_isOnHoverDisk;
1972  }
Definition: eye_of_eternity.h:50
bool _isOnHoverDisk
Definition: boss_malygos.cpp:1975
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

Member Data Documentation

bool IsPlayerOnHoverDisk::_isOnHoverDisk
private

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