AzeorthCore 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
2961: _owner(owner) { }
GameObject * _owner
Definition: GameObject.cpp:2972

Member Function Documentation

◆ DebugVisualizeCorner()

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

Implements GameObjectModelOwnerBase.

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

References _owner, and TEMPSUMMON_TIMED_DESPAWN.

◆ GetDisplayId()

uint32 GameObjectModelOwnerImpl::GetDisplayId ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and GameObject::GetDisplayId().

◆ GetOrientation()

float GameObjectModelOwnerImpl::GetOrientation ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and Position::GetOrientation().

◆ GetPhaseMask()

uint32 GameObjectModelOwnerImpl::GetPhaseMask ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

2965{ return (_owner->GetGoState() == GO_STATE_READY || _owner->IsTransport()) ? _owner->GetPhaseMask() : 0; }
@ GO_STATE_READY
Definition: GameObject.h:735
GOState GetGoState() const
Definition: GameObject.h:898
bool IsTransport() const
Definition: GameObject.cpp:1197
uint32 GetPhaseMask() const
Definition: Object.h:434

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

◆ GetPosition()

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

Implements GameObjectModelOwnerBase.

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

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

◆ GetScale()

float GameObjectModelOwnerImpl::GetScale ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and Object::GetObjectScale().

◆ IsSpawned()

bool GameObjectModelOwnerImpl::IsSpawned ( ) const
inlineoverridevirtual

Implements GameObjectModelOwnerBase.

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

References _owner, and GameObject::isSpawned().

Member Data Documentation

◆ _owner

GameObject* GameObjectModelOwnerImpl::_owner
private