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 ),
|
2019-01-06 23:34:19 +01:00
|
|
|
m_gimmickId( gimmickId ),
|
|
|
|
m_lastSpawn( 0 ),
|
|
|
|
m_timeOfDeath( 0 )
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-01-08 17:08:48 +01:00
|
|
|
uint32_t Sapphire::Entity::SpawnPoint::getTimeOfDeath() const
|
|
|
|
{
|
|
|
|
return m_timeOfDeath;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Sapphire::Entity::SpawnPoint::setTimeOfDeath( uint32_t timeOfDeath )
|
|
|
|
{
|
|
|
|
m_timeOfDeath = timeOfDeath;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|