1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 23:57:46 +00:00
sapphire/src/world/Actor/SpawnPoint.cpp

53 lines
921 B
C++
Raw Normal View History

#include "SpawnPoint.h"
#include "BNpc.h"
Sapphire::Entity::SpawnPoint::SpawnPoint()
{
}
Sapphire::Entity::SpawnPoint::SpawnPoint( float x, float y, float z, float rot, uint32_t gimmickId ) :
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 )
{
}
float Sapphire::Entity::SpawnPoint::getPosX() const
{
return m_posX;
}
float Sapphire::Entity::SpawnPoint::getPosY() const
{
return m_posY;
}
float Sapphire::Entity::SpawnPoint::getPosZ() const
{
return m_posZ;
}
float Sapphire::Entity::SpawnPoint::getRotation() const
{
return m_rotation;
}
uint32_t Sapphire::Entity::SpawnPoint::getGimmickId() const
{
return m_gimmickId;
}
Sapphire::Entity::BNpcPtr Sapphire::Entity::SpawnPoint::getLinkedBNpc()
{
return m_pLinkedBnpc;
}
void Sapphire::Entity::SpawnPoint::setLinkedBNpc( BNpcPtr pBnpc )
{
m_pLinkedBnpc = pBnpc;
}