AzerothCore 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
2466: _entry(entry) {}
uint32 _entry
Definition: boss_icecrown_gunship_battle.cpp:2475

Member Function Documentation

◆ operator()()

bool IgbArtilleryCheck::operator() ( WorldObject unit)
inline
2469 {
2470 return !unit->IsPlayer() || unit->GetPositionZ() > 478.0f || !unit->GetTransport() || unit->GetTransport()->GetEntry() != _entry
2471 || unit->GetMapHeight(unit->GetPhaseMask(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ()) < 465.0f;
2472 }
bool IsPlayer() const
Definition: Object.h:197
uint32 GetEntry() const
Definition: Object.h:112
uint32 GetPhaseMask() const
Definition: Object.h:446
float GetMapHeight(float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
Definition: Object.cpp:3118
Transport * GetTransport() const
Definition: Object.h:599
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(), and Object::IsPlayer().

Member Data Documentation

◆ _entry

uint32 IgbArtilleryCheck::_entry
private

Referenced by operator()().