1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 17:57:47 +00:00
sapphire/src/servers/sapphire_zone/Actor/EventNpc.h

43 lines
721 B
C
Raw Normal View History

2018-01-20 22:03:41 +01:00
#ifndef _EVENTNPC_H
#define _EVENTNPC_H
#include "Actor.h"
namespace Core {
namespace Entity {
// class for Mobs inheriting from Actor
class EventNpc : public Actor
{
public:
EventNpc();
virtual ~EventNpc() override;
2018-01-20 22:03:41 +01:00
EventNpc( uint32_t enpcId, const Common::FFXIVARR_POSITION3& spawnPos, float rotation );
// send spawn packets to pTarget
void spawn( PlayerPtr pTarget ) override;
// send despawn packets to pTarget
void despawn( PlayerPtr pTarget ) override;
2018-01-20 22:03:41 +01:00
uint8_t getLevel() const override;
void resetPos();
uint32_t getEnpcId() const;
private:
static uint32_t m_nextID;
Common::FFXIVARR_POSITION3 m_posOrigin;
uint8_t m_level;
uint32_t m_eNpcId;
};
}
}
#endif