1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00
sapphire/src/servers/Server_Zone/Inventory/Item.h

82 lines
1.5 KiB
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _ITEM_H_
#define _ITEM_H_
2017-08-19 00:18:40 +02:00
#include <src/servers/Server_Common/Common.h>
2017-08-08 13:53:47 +02:00
namespace Core {
class Item
{
public:
Item();
Item( uint32_t catalogId );
Item( uint64_t uId, uint32_t catalogId, uint64_t model1, uint64_t model2, Common::ItemCategory categoryId, bool isHq = false );
~Item();
uint32_t getId() const;
void setId( uint32_t id );
uint64_t getUId() const;
void setUId( uint64_t id );
void setStackSize( uint32_t size );
uint32_t getStackSize() const;
void setCategory( Common::ItemCategory categoryId );
Common::ItemCategory getCategory() const;
void setModelIds( uint64_t model1, uint64_t model2 );
uint64_t getModelId1() const;
uint64_t getModelId2() const;
bool isHq() const;
void setHq( bool isHq );
2017-08-08 13:53:47 +02:00
uint16_t getDelay() const;
uint16_t getPhysicalDmg() const;
uint16_t getMagicalDmg() const;
uint16_t getWeaponDmg() const;
float getAutoAttackDmg() const;
uint16_t getItemLevel() const;
2017-08-08 13:53:47 +02:00
protected:
uint32_t m_id;
uint64_t m_uId;
Common::ItemCategory m_category;
uint32_t m_stackSize;
std::vector< uint8_t > m_classJobList;
uint64_t m_model1;
uint64_t m_model2;
bool m_isHq;
uint16_t m_delayMs;
uint16_t m_physicalDmg;
uint16_t m_magicalDmg;
uint16_t m_weaponDmg;
float m_autoAttackDmg;
uint16_t m_itemLevel;
2017-08-08 13:53:47 +02:00
};
}
#endif