2017-08-08 13:53:47 +02:00
|
|
|
#include "ZonePosition.h"
|
|
|
|
|
|
|
|
Core::ZonePosition::ZonePosition()
|
2018-08-29 21:40:59 +02:00
|
|
|
:
|
|
|
|
m_id( 0 ), m_targetZoneId( 0 ), m_radius( 0 )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
Core::ZonePosition::ZonePosition( uint32_t id, uint32_t targetZoneId, const Common::FFXIVARR_POSITION3& targetPosition,
|
|
|
|
uint32_t radius, float rotation )
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
m_id = id;
|
|
|
|
m_targetZoneId = targetZoneId;
|
|
|
|
m_targetPos = targetPosition;
|
|
|
|
m_radius = radius;
|
|
|
|
m_rotation = rotation;
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Core::ZonePosition::~ZonePosition()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t Core::ZonePosition::getId() const
|
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
return m_id;
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t Core::ZonePosition::getTargetZoneId() const
|
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
return m_targetZoneId;
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
const Core::Common::FFXIVARR_POSITION3& Core::ZonePosition::getTargetPosition() const
|
2017-08-08 13:53:47 +02:00
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
return m_targetPos;
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
float Core::ZonePosition::getTargetRotation() const
|
|
|
|
{
|
2018-08-29 21:40:59 +02:00
|
|
|
return m_rotation;
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|