18#ifndef TRINITYCORE_CORPSE_H
19#define TRINITYCORE_CORPSE_H
33#define MAX_CORPSE_TYPE 3
36#define CORPSE_RECLAIM_RADIUS 39
109 void ResetGhostTime();
118 bool IsExpired(time_t t)
const;
@ CORPSE_RESURRECTABLE_PVE
@ CORPSE_RESURRECTABLE_PVP
SQLTransaction< CharacterDatabaseConnection > CharacterDatabaseTransaction
#define DEFINE_ENUM_FLAG(enumType)
static void SaveToDB(QuestPool const &pool, CharacterDatabaseTransaction trans)
@ CORPSE_FIELD_DISPLAY_ID
@ CORPSE_FIELD_DYNAMIC_FLAGS
void SetHairStyleId(uint8 hairStyle)
uint32 GetDisplayId() const
uint8 GetHairColorId() const
ObjectGuid GetPartyGUID() const
bool HasCorpseDynamicFlag(CorpseDynFlags flags) const
bool HasCorpseFlag(CorpseFlags flags) const
void ReplaceAllCorpseDynamicFlags(CorpseDynFlags flag)
void SetDisplayId(uint32 displayId)
void SetCorpseFlag(CorpseFlags flags)
CorpseDynFlags GetCorpseDynamicFlags() const
uint32 GetGuildId() const
void RemoveCorpseDynamicFlag(CorpseDynFlags flag)
void ReplaceAllCorpseFlags(CorpseFlags flags)
void SetOwnerGUID(ObjectGuid owner)
void SetPartyGUID(ObjectGuid partyGuid)
void SetFacialStyle(uint8 facialStyle)
void SetCorpseDynamicFlag(CorpseDynFlags flag)
uint8 GetHairStyleId() const
time_t const & GetGhostTime() const
CellCoord const & GetCellCoord() const
uint32 GetItem(uint32 slot) const
CorpseFlags GetCorpseFlags() const
ObjectGuid GetOwnerGUID() const override
void RemoveCorpseFlag(CorpseFlags flags)
void SetFaceId(uint8 face)
void SetCellCoord(CellCoord const &cellCoord)
void SetGuildId(uint32 guildId)
uint8 GetFacialStyle() const
CorpseType GetType() const
void SetHairColorId(uint8 hairColor)
void SetSkinId(uint8 skin)
void SetItem(uint32 slot, uint32 item)
Class used to access individual fields of database query result.
uint8 GetByteValue(uint16 index, uint8 offset) const
void SetByteValue(uint16 index, uint8 offset, uint8 value)
uint32 GetUInt32Value(uint16 index) const
void SetFlag(uint16 index, uint32 newFlag)
void RemoveFlag(uint16 index, uint32 oldFlag)
void SetGuidValue(uint16 index, ObjectGuid value)
void SetUInt32Value(uint16 index, uint32 value)
ObjectGuid GetGuidValue(uint16 index) const
void AddToWorld() override
void RemoveFromWorld() override
virtual uint32 GetFaction() const =0