2018-09-24 23:48:42 +02:00
|
|
|
#include "SpawnPoint.h"
|
|
|
|
#include "BNpc.h"
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
Sapphire::Entity::SpawnPoint::SpawnPoint()
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
Sapphire::Entity::SpawnPoint::SpawnPoint( float x, float y, float z, float rot, uint32_t gimmickId ) :
|
2018-09-24 23:48:42 +02:00
|
|
|
m_posX( x ),
|
|
|
|
m_posY( y ),
|
|
|
|
m_posZ( z ),
|
|
|
|
m_rotation( rot ),
|
|
|
|
m_gimmickId( gimmickId )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
float Sapphire::Entity::SpawnPoint::getPosX() const
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_posX;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
float Sapphire::Entity::SpawnPoint::getPosY() const
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_posY;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
float Sapphire::Entity::SpawnPoint::getPosZ() const
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_posZ;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
float Sapphire::Entity::SpawnPoint::getRotation() const
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_rotation;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
uint32_t Sapphire::Entity::SpawnPoint::getGimmickId() const
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_gimmickId;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
Sapphire::Entity::BNpcPtr Sapphire::Entity::SpawnPoint::getLinkedBNpc()
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
return m_pLinkedBnpc;
|
|
|
|
}
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
void Sapphire::Entity::SpawnPoint::setLinkedBNpc( BNpcPtr pBnpc )
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
m_pLinkedBnpc = pBnpc;
|
|
|
|
}
|