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
 
virtual bool IsSpawned () const =0
 
virtual uint32 GetDisplayId () const =0
 
virtual uint32 GetPhaseMask () const =0
 
virtual G3D::Vector3 GetPosition () const =0
 
virtual float GetOrientation () const =0
 
virtual float GetScale () const =0
 
virtual void DebugVisualizeCorner (G3D::Vector3 const &) const =0
 

Private Attributes

GameObject_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ GameObjectModelOwnerImpl()

GameObjectModelOwnerImpl::GameObjectModelOwnerImpl ( GameObject owner)
inlineexplicit
2942: _owner(owner) { }
GameObject * _owner
Definition: GameObject.cpp:2953

Member Function Documentation

◆ DebugVisualizeCorner()

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

Implements GameObjectModelOwnerBase.

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

References _owner, and TEMPSUMMON_TIMED_DESPAWN.

◆ GetDisplayId()

uint32 GameObjectModelOwnerImpl::GetDisplayId ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and GameObject::GetDisplayId().

◆ GetOrientation()

float GameObjectModelOwnerImpl::GetOrientation ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and Position::GetOrientation().

◆ GetPhaseMask()

uint32 GameObjectModelOwnerImpl::GetPhaseMask ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2946{ return (_owner->GetGoState() == GO_STATE_READY || _owner->IsTransport()) ? _owner->GetPhaseMask() : 0; }
@ GO_STATE_READY
Definition: GameObjectData.h:690
GOState GetGoState() const
Definition: GameObject.h:205
bool IsTransport() const
Definition: GameObject.cpp:1226
uint32 GetPhaseMask() const
Definition: Object.h:446

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

◆ GetPosition()

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

Implements GameObjectModelOwnerBase.

2947{ return G3D::Vector3(_owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ()); }
float GetPositionZ() const
Definition: Position.h:118
float GetPositionX() const
Definition: Position.h:116
float GetPositionY() const
Definition: Position.h:117

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

◆ GetScale()

float GameObjectModelOwnerImpl::GetScale ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and Object::GetObjectScale().

◆ IsSpawned()

bool GameObjectModelOwnerImpl::IsSpawned ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and GameObject::isSpawned().

Member Data Documentation

◆ _owner

GameObject* GameObjectModelOwnerImpl::_owner
private