AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
IgbArtilleryCheck Class Reference

Public Member Functions

 IgbArtilleryCheck (uint32 entry)
 
bool operator() (WorldObject *unit)
 

Private Attributes

uint32 _entry
 

Detailed Description

Constructor & Destructor Documentation

◆ IgbArtilleryCheck()

IgbArtilleryCheck::IgbArtilleryCheck ( uint32  entry)
inline
2550: _entry(entry) {}
uint32 _entry
Definition: boss_icecrown_gunship_battle.cpp:2559

Member Function Documentation

◆ operator()()

bool IgbArtilleryCheck::operator() ( WorldObject unit)
inline
2553 {
2554 return unit->GetTypeId() != TYPEID_PLAYER || unit->GetPositionZ() > 478.0f || !unit->GetTransport() || unit->GetTransport()->GetEntry() != _entry
2555 || unit->GetMapHeight(unit->GetPhaseMask(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ()) < 465.0f;
2556 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
TypeID GetTypeId() const
Definition: Object.h:121
uint32 GetEntry() const
Definition: Object.h:109
uint32 GetPhaseMask() const
Definition: Object.h:434
float GetMapHeight(float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
Definition: Object.cpp:3035
Transport * GetTransport() const
Definition: Object.h:585
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118

References _entry, Object::GetEntry(), WorldObject::GetMapHeight(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), Object::GetTypeId(), and TYPEID_PLAYER.

Member Data Documentation

◆ _entry

uint32 IgbArtilleryCheck::_entry
private

Referenced by operator()().