AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GameObjectModelOwnerImpl Class Reference
Inheritance diagram for GameObjectModelOwnerImpl:
GameObjectModelOwnerBase

Public Member Functions

 GameObjectModelOwnerImpl (GameObject *owner)
 
bool IsSpawned () const override
 
uint32 GetDisplayId () const override
 
uint32 GetPhaseMask () const override
 
G3D::Vector3 GetPosition () const override
 
float GetOrientation () const override
 
float GetScale () const override
 
void DebugVisualizeCorner (G3D::Vector3 const &corner) const override
 
- Public Member Functions inherited from GameObjectModelOwnerBase
virtual ~GameObjectModelOwnerBase ()=default
 

Private Attributes

GameObject_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ GameObjectModelOwnerImpl()

GameObjectModelOwnerImpl::GameObjectModelOwnerImpl ( GameObject owner)
inlineexplicit
2927: _owner(owner) { }
GameObject * _owner
Definition GameObject.cpp:2938

Member Function Documentation

◆ DebugVisualizeCorner()

void GameObjectModelOwnerImpl::DebugVisualizeCorner ( G3D::Vector3 const &  corner) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2935{ const_cast<GameObject*>(_owner)->SummonCreature(1, corner.x, corner.y, corner.z, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 10000); }
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:48
Definition GameObject.h:120

References _owner, and TEMPSUMMON_TIMED_DESPAWN.

◆ GetDisplayId()

uint32 GameObjectModelOwnerImpl::GetDisplayId ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2930{ return _owner->GetDisplayId(); }
uint32 GetDisplayId() const
Definition GameObject.h:309

References _owner, and GameObject::GetDisplayId().

◆ GetOrientation()

float GameObjectModelOwnerImpl::GetOrientation ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2933{ return _owner->GetOrientation(); }
float GetOrientation() const
Definition Position.h:124

References _owner, and Position::GetOrientation().

◆ GetPhaseMask()

uint32 GameObjectModelOwnerImpl::GetPhaseMask ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2931{ return (_owner->GetGoState() == GO_STATE_READY || _owner->IsTransport()) ? _owner->GetPhaseMask() : 0; }
@ GO_STATE_READY
Definition GameObjectData.h:690
GOState GetGoState() const
Definition GameObject.h:204
bool IsTransport() const
Definition GameObject.cpp:1211
uint32 GetPhaseMask() const
Definition Object.h:451

References _owner, GameObject::GetGoState(), WorldObject::GetPhaseMask(), GO_STATE_READY, and GameObject::IsTransport().

◆ GetPosition()

G3D::Vector3 GameObjectModelOwnerImpl::GetPosition ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2932{ return G3D::Vector3(_owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ()); }
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122

References _owner, Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().

◆ GetScale()

float GameObjectModelOwnerImpl::GetScale ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2934{ return _owner->GetObjectScale(); }
float GetObjectScale() const
Definition Object.h:118

References _owner, and Object::GetObjectScale().

◆ IsSpawned()

bool GameObjectModelOwnerImpl::IsSpawned ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2929{ return _owner->isSpawned(); }
bool isSpawned() const
Definition GameObject.h:189

References _owner, and GameObject::isSpawned().

Member Data Documentation

◆ _owner

GameObject* GameObjectModelOwnerImpl::_owner
private

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