mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 09:17:47 +00:00
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
#ifndef _BNPC_H_
|
|
#define _BNPC_H_
|
|
|
|
#include <Common.h>
|
|
|
|
#include "Forwards.h"
|
|
#include "Chara.h"
|
|
#include "Npc.h"
|
|
#include <set>
|
|
#include <map>
|
|
#include <queue>
|
|
|
|
namespace Core::Entity
|
|
{
|
|
|
|
/*!
|
|
\class BNpc
|
|
\brief Base class for all BNpcs
|
|
|
|
*/
|
|
class BNpc : public Npc
|
|
{
|
|
|
|
public:
|
|
BNpc();
|
|
BNpc( BNpcTemplatePtr pTemplate, float posX, float posY, float posZ, uint8_t level );
|
|
|
|
virtual ~BNpc() override;
|
|
|
|
void spawn( PlayerPtr pTarget ) override;
|
|
|
|
uint16_t getModelChara() const;
|
|
uint8_t getLevel() const override;
|
|
|
|
uint32_t getBNpcBaseId() const;
|
|
uint32_t getBNpcNameId() const;
|
|
|
|
uint8_t getEnemyType() const;
|
|
|
|
uint64_t getWeaponMain() const;
|
|
uint64_t getWeaponSub() const;
|
|
|
|
uint8_t getAggressionMode() const;
|
|
|
|
private:
|
|
uint32_t m_bNpcBaseId;
|
|
uint32_t m_bNpcNameId;
|
|
uint64_t m_weaponMain;
|
|
uint64_t m_weaponSub;
|
|
uint8_t m_aggressionMode;
|
|
uint8_t m_enemyType;
|
|
uint8_t m_onlineStatus;
|
|
uint8_t m_pose;
|
|
uint16_t m_modelChara;
|
|
uint32_t m_displayFlags;
|
|
uint8_t m_level;
|
|
|
|
};
|
|
|
|
}
|
|
#endif
|