|
Item * | CloneItem (uint32 count, Player const *player=nullptr) const |
|
| Item () |
|
| ~Item () |
|
virtual bool | Create (ObjectGuid::LowType guidlow, uint32 itemId, ItemContext context, Player const *owner) |
|
std::string | GetNameForLocaleIdx (LocaleConstant locale) const override |
|
ItemTemplate const * | GetTemplate () const |
|
BonusData const * | GetBonus () const |
|
ObjectGuid | GetOwnerGUID () const |
|
void | SetOwnerGUID (ObjectGuid guid) |
|
ObjectGuid | GetContainedIn () const |
|
void | SetContainedIn (ObjectGuid guid) |
|
ObjectGuid | GetCreator () const |
|
void | SetCreator (ObjectGuid guid) |
|
ObjectGuid | GetGiftCreator () const |
|
void | SetGiftCreator (ObjectGuid guid) |
|
Player * | GetOwner () const |
|
void | SetExpiration (uint32 expiration) |
|
ItemBondingType | GetBonding () const |
|
void | SetBinding (bool val) |
|
bool | HasItemFlag (ItemFieldFlags flag) const |
|
void | SetItemFlag (ItemFieldFlags flags) |
|
void | RemoveItemFlag (ItemFieldFlags flags) |
|
void | ReplaceAllItemFlags (ItemFieldFlags flags) |
|
bool | HasItemFlag2 (ItemFieldFlags2 flag) const |
|
void | SetItemFlag2 (ItemFieldFlags2 flags) |
|
void | RemoveItemFlag2 (ItemFieldFlags2 flags) |
|
void | ReplaceAllItemFlags2 (ItemFieldFlags2 flags) |
|
bool | IsSoulBound () const |
|
bool | IsBoundAccountWide () const |
|
bool | IsBattlenetAccountBound () const |
|
bool | IsBindedNotWith (Player const *player) const |
|
bool | IsBoundByEnchant () const |
|
virtual void | SaveToDB (CharacterDatabaseTransaction trans) |
|
virtual bool | LoadFromDB (ObjectGuid::LowType guid, ObjectGuid ownerGuid, Field *fields, uint32 entry) |
|
void | LoadArtifactData (Player const *owner, uint64 xp, uint32 artifactAppearanceId, uint32 artifactTier, std::vector< ArtifactPowerData > &powers) |
|
void | CheckArtifactRelicSlotUnlock (Player const *owner) |
|
void | AddBonuses (uint32 bonusListID) |
|
std::vector< int32 > const & | GetBonusListIDs () const |
|
void | SetBonuses (std::vector< int32 > bonusListIDs) |
|
void | ClearBonuses () |
|
virtual void | DeleteFromDB (CharacterDatabaseTransaction trans) |
|
void | DeleteFromInventoryDB (CharacterDatabaseTransaction trans) |
|
void | SaveRefundDataToDB () |
|
void | DeleteRefundDataFromDB (CharacterDatabaseTransaction *trans) |
|
Bag * | ToBag () |
|
Bag const * | ToBag () const |
|
AzeriteItem * | ToAzeriteItem () |
|
AzeriteItem const * | ToAzeriteItem () const |
|
AzeriteEmpoweredItem * | ToAzeriteEmpoweredItem () |
|
AzeriteEmpoweredItem const * | ToAzeriteEmpoweredItem () const |
|
bool | IsRefundable () const |
|
bool | IsBOPTradeable () const |
|
bool | IsWrapped () const |
|
bool | IsLocked () const |
|
bool | IsBag () const |
|
bool | IsAzeriteItem () const |
|
bool | IsAzeriteEmpoweredItem () const |
|
bool | IsCurrencyToken () const |
|
bool | IsNotEmptyBag () const |
|
bool | IsBroken () const |
|
void | SetDurability (uint32 durability) |
|
void | SetMaxDurability (uint32 maxDurability) |
|
bool | CanBeTraded (bool mail=false, bool trade=false) const |
|
void | SetInTrade (bool b=true) |
|
bool | IsInTrade () const |
|
uint64 | CalculateDurabilityRepairCost (float discount) const |
|
bool | HasEnchantRequiredSkill (Player const *player) const |
|
uint32 | GetEnchantRequiredLevel () const |
|
bool | IsFitToSpellRequirements (SpellInfo const *spellInfo) const |
|
bool | IsLimitedToAnotherMapOrZone (uint32 cur_mapId, uint32 cur_zoneId) const |
|
bool | GemsFitSockets () const |
|
uint32 | GetCount () const |
|
void | SetCount (uint32 value) |
|
uint32 | GetMaxStackCount () const |
|
uint8 | GetGemCountWithID (uint32 GemID) const |
|
uint8 | GetGemCountWithLimitCategory (uint32 limitCategory) const |
|
InventoryResult | CanBeMergedPartlyWith (ItemTemplate const *proto) const |
|
uint8 | GetSlot () const |
|
Bag * | GetContainer () |
|
uint8 | GetBagSlot () const |
|
void | SetSlot (uint8 slot) |
|
uint16 | GetPos () const |
|
void | SetContainer (Bag *container) |
|
bool | IsInBag () const |
|
bool | IsEquipped () const |
|
uint32 | GetSkill () |
|
ItemRandomBonusListId | GetItemRandomBonusListId () const |
|
void | SetItemRandomBonusList (ItemRandomBonusListId bonusListId) |
|
void | SetEnchantment (EnchantmentSlot slot, uint32 id, uint32 duration, uint32 charges, ObjectGuid caster=ObjectGuid::Empty) |
|
void | SetEnchantmentDuration (EnchantmentSlot slot, uint32 duration, Player *owner) |
|
void | SetEnchantmentCharges (EnchantmentSlot slot, uint32 charges) |
|
void | ClearEnchantment (EnchantmentSlot slot) |
|
uint32 | GetEnchantmentId (EnchantmentSlot slot) const |
|
uint32 | GetEnchantmentDuration (EnchantmentSlot slot) const |
|
uint32 | GetEnchantmentCharges (EnchantmentSlot slot) const |
|
UF::SocketedGem const * | GetGem (uint16 slot) const |
|
void | SetGem (uint16 slot, ItemDynamicFieldGems const *gem, uint32 gemScalingLevel) |
|
std::string const & | GetText () const |
|
void | SetText (std::string const &text) |
|
void | SendUpdateSockets () |
|
void | SendTimeUpdate (Player *owner) |
|
void | UpdateDuration (Player *owner, uint32 diff) |
|
void | SetCreatePlayedTime (uint32 createPlayedTime) |
|
void | SetCreateTime (int64 createTime) |
|
int32 | GetSpellCharges (uint8 index=0) const |
|
void | SetSpellCharges (uint8 index, int32 value) |
|
Loot * | GetLootForPlayer (Player const *) const override |
|
ItemUpdateState | GetState () const |
|
void | SetState (ItemUpdateState state, Player *forplayer=nullptr) |
|
bool | IsInUpdateQueue () const |
|
uint16 | GetQueuePos () const |
|
void | FSetState (ItemUpdateState state) |
|
bool | hasQuest (uint32 quest_id) const override |
|
bool | hasInvolvedQuest (uint32) const override |
|
bool | IsPotion () const |
|
bool | IsVellum () const |
|
bool | IsConjuredConsumable () const |
|
bool | IsRangedWeapon () const |
|
uint32 | GetQuality () const |
|
uint32 | GetItemLevel (Player const *owner) const |
|
int32 | GetRequiredLevel () const |
|
int32 | GetItemStatType (uint32 index) const |
|
float | GetItemStatValue (uint32 index, Player const *owner) const |
|
SocketColor | GetSocketColor (uint32 index) const |
|
uint32 | GetAppearanceModId () const |
|
void | SetAppearanceModId (uint32 appearanceModId) |
|
uint32 | GetDisplayId (Player const *owner) const |
|
ItemModifiedAppearanceEntry const * | GetItemModifiedAppearance () const |
|
float | GetRepairCostMultiplier () const |
|
uint32 | GetScalingContentTuningId () const |
|
Optional< uint32 > | GetDisenchantLootId () const |
|
Optional< uint16 > | GetDisenchantSkillRequired () const |
|
void | SetFixedLevel (uint8 level) |
|
Trinity::IteratorPair< ItemEffectEntry const *const * > | GetEffects () const |
|
void | SetNotRefundable (Player *owner, bool changestate=true, CharacterDatabaseTransaction *trans=nullptr, bool addToCollection=true) |
|
void | SetRefundRecipient (ObjectGuid const &guid) |
|
void | SetPaidMoney (uint64 money) |
|
void | SetPaidExtendedCost (uint32 iece) |
|
ObjectGuid const & | GetRefundRecipient () const |
|
uint64 | GetPaidMoney () const |
|
uint32 | GetPaidExtendedCost () const |
|
uint32 | GetPlayedTime () const |
|
bool | IsRefundExpired () const |
|
void | SetSoulboundTradeable (GuidSet const &allowedLooters) |
|
void | ClearSoulboundTradeable (Player *currentOwner) |
|
bool | CheckSoulboundTradeExpire () |
|
void | BuildUpdate (UpdateDataMapType &) override |
|
void | BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const override |
|
void | BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::ItemData::Mask const &requestedItemMask, Player const *target) const |
|
bool | AddToObjectUpdate () override |
|
void | RemoveFromObjectUpdate () override |
|
uint32 | GetScriptId () const |
|
bool | IsValidTransmogrificationTarget () const |
|
bool | HasStats () const |
|
uint32 | GetBuyPrice (Player const *owner, bool &standardPrice) const |
|
uint32 | GetSellPrice (Player const *owner) const |
|
uint32 | GetVisibleEntry (Player const *owner) const |
|
uint16 | GetVisibleAppearanceModId (Player const *owner) const |
|
uint32 | GetVisibleModifiedAppearanceId (Player const *owner) const |
|
int32 | GetVisibleSecondaryModifiedAppearanceId (Player const *owner) const |
|
uint32 | GetVisibleEnchantmentId (Player const *owner) const |
|
uint16 | GetVisibleItemVisual (Player const *owner) const |
|
uint32 | GetModifier (ItemModifier modifier) const |
|
void | SetModifier (ItemModifier modifier, uint32 value) |
|
ObjectGuid | GetChildItem () const |
|
void | SetChildItem (ObjectGuid childItem) |
|
bool | IsArtifactDisabled () const |
|
UF::ArtifactPower const * | GetArtifactPower (uint32 artifactPowerId) const |
|
void | AddArtifactPower (ArtifactPowerData const *artifactPower) |
|
void | SetArtifactPower (uint16 artifactPowerId, uint8 purchasedRank, uint8 currentRankWithBonus) |
|
void | InitArtifactPowers (uint8 artifactId, uint8 artifactTier) |
|
uint32 | GetTotalUnlockedArtifactPowers () const |
|
uint32 | GetTotalPurchasedArtifactPowers () const |
|
void | ApplyArtifactPowerEnchantmentBonuses (EnchantmentSlot slot, uint32 enchantId, bool apply, Player *owner) |
|
void | CopyArtifactDataFromParent (Item *parent) |
|
void | SetArtifactXP (uint64 xp) |
|
void | GiveArtifactXp (uint64 amount, Item *sourceItem, uint32 artifactCategoryId) |
|
ItemContext | GetContext () const |
|
void | SetContext (ItemContext context) |
|
void | SetPetitionId (uint32 petitionId) |
|
void | SetPetitionNumSignatures (uint32 signatures) |
|
std::string | GetDebugInfo () const override |
|
virtual | ~Object () |
|
bool | IsInWorld () const |
|
virtual void | AddToWorld () |
|
virtual void | RemoveFromWorld () |
|
ObjectGuid const & | GetGUID () const |
|
uint32 | GetEntry () const |
|
void | SetEntry (uint32 entry) |
|
float | GetObjectScale () const |
|
virtual void | SetObjectScale (float scale) |
|
uint32 | GetDynamicFlags () const |
|
bool | HasDynamicFlag (uint32 flag) const |
|
void | SetDynamicFlag (uint32 flag) |
|
void | RemoveDynamicFlag (uint32 flag) |
|
void | ReplaceAllDynamicFlags (uint32 flag) |
|
TypeID | GetTypeId () const |
|
bool | isType (uint16 mask) const |
|
virtual void | BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const |
|
void | SendUpdateToPlayer (Player *player) |
|
void | BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const |
|
void | BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const |
|
void | BuildDestroyUpdateBlock (UpdateData *data) const |
|
void | BuildOutOfRangeUpdateBlock (UpdateData *data) const |
|
ByteBuffer & | PrepareValuesUpdateBuffer (UpdateData *data) const |
|
virtual void | DestroyForPlayer (Player *target) const |
|
void | SendOutOfRangeForPlayer (Player *target) const |
|
virtual void | ClearUpdateMask (bool remove) |
|
virtual std::string | GetNameForLocaleIdx (LocaleConstant locale) const =0 |
|
virtual bool | hasQuest (uint32) const |
|
virtual bool | hasInvolvedQuest (uint32) const |
|
void | SetIsNewObject (bool enable) |
|
bool | IsDestroyedObject () const |
|
void | SetDestroyedObject (bool destroyed) |
|
virtual void | BuildUpdate (UpdateDataMapType &) |
|
void | BuildFieldsUpdate (Player *, UpdateDataMapType &) const |
|
bool | IsWorldObject () const |
|
WorldObject * | ToWorldObject () |
|
WorldObject const * | ToWorldObject () const |
|
bool | IsItem () const |
|
Item * | ToItem () |
|
Item const * | ToItem () const |
|
bool | IsPlayer () const |
|
Player * | ToPlayer () |
|
Player const * | ToPlayer () const |
|
bool | IsCreature () const |
|
Creature * | ToCreature () |
|
Creature const * | ToCreature () const |
|
bool | IsUnit () const |
|
Unit * | ToUnit () |
|
Unit const * | ToUnit () const |
|
bool | IsGameObject () const |
|
GameObject * | ToGameObject () |
|
GameObject const * | ToGameObject () const |
|
bool | IsCorpse () const |
|
Corpse * | ToCorpse () |
|
Corpse const * | ToCorpse () const |
|
bool | IsDynObject () const |
|
DynamicObject * | ToDynObject () |
|
DynamicObject const * | ToDynObject () const |
|
bool | IsAreaTrigger () const |
|
AreaTrigger * | ToAreaTrigger () |
|
AreaTrigger const * | ToAreaTrigger () const |
|
bool | IsSceneObject () const |
|
SceneObject * | ToSceneObject () |
|
SceneObject const * | ToSceneObject () const |
|
bool | IsConversation () const |
|
Conversation * | ToConversation () |
|
Conversation const * | ToConversation () const |
|
template<typename T > |
void | ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &) |
|
virtual std::string | GetDebugInfo () const |
|
Trinity::unique_weak_ptr< Object > | GetWeakPtr () const |
|
virtual Loot * | GetLootForPlayer (Player const *player) const |
|
virtual void | BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const |
|
|
static Item * | CreateItem (uint32 itemEntry, uint32 count, ItemContext context, Player const *player=nullptr, bool addDefaultBonuses=true) |
|
static void | DeleteFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid) |
|
static void | DeleteFromInventoryDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid) |
|
static uint32 | GetItemLevel (ItemTemplate const *itemTemplate, BonusData const &bonusData, uint32 level, uint32 fixedLevel, uint32 minItemLevel, uint32 minItemLevelCutoff, uint32 maxItemLevel, bool pvpBonus, uint32 azeriteLevel) |
|
static ItemDisenchantLootEntry const * | GetBaseDisenchantLoot (ItemTemplate const *itemTemplate, uint32 quality, uint32 itemLevel) |
|
static bool | HasStats (WorldPackets::Item::ItemInstance const &itemInstance, BonusData const *bonus) |
|
static bool | CanTransmogrifyItemWithItem (Item const *item, ItemModifiedAppearanceEntry const *itemModifiedAppearance) |
|
static uint32 | GetBuyPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel, bool &standardPrice) |
|
static uint32 | GetSellPrice (ItemTemplate const *proto, uint32 quality, uint32 itemLevel) |
|
static ObjectGuid | GetGUID (Object const *o) |
|
static WorldObject * | ToWorldObject (Object *o) |
|
static WorldObject const * | ToWorldObject (Object const *o) |
|
static Item * | ToItem (Object *o) |
|
static Item const * | ToItem (Object const *o) |
|
static Player * | ToPlayer (Object *o) |
|
static Player const * | ToPlayer (Object const *o) |
|
static Creature * | ToCreature (Object *o) |
|
static Creature const * | ToCreature (Object const *o) |
|
static Unit * | ToUnit (Object *o) |
|
static Unit const * | ToUnit (Object const *o) |
|
static GameObject * | ToGameObject (Object *o) |
|
static GameObject const * | ToGameObject (Object const *o) |
|
static Corpse * | ToCorpse (Object *o) |
|
static Corpse const * | ToCorpse (Object const *o) |
|
static DynamicObject * | ToDynObject (Object *o) |
|
static DynamicObject const * | ToDynObject (Object const *o) |
|
static AreaTrigger * | ToAreaTrigger (Object *o) |
|
static AreaTrigger const * | ToAreaTrigger (Object const *o) |
|
static SceneObject * | ToSceneObject (Object *o) |
|
static SceneObject const * | ToSceneObject (Object const *o) |
|
static Conversation * | ToConversation (Object *o) |
|
static Conversation const * | ToConversation (Object const *o) |
|
|
UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const override |
|
void | BuildValuesCreate (ByteBuffer *data, Player const *target) const override |
|
void | BuildValuesUpdate (ByteBuffer *data, Player const *target) const override |
|
void | ClearUpdateMask (bool remove) override |
|
| Object () |
|
void | _Create (ObjectGuid const &guid) |
|
template<typename T > |
void | SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value) |
|
template<typename T > |
void | SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag) |
|
template<typename T > |
void | RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag) |
|
template<typename T > |
UF::DynamicUpdateFieldSetter< T >::insert_result | AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter) |
|
template<typename T > |
UF::DynamicUpdateFieldSetter< T >::insert_result | InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
|
template<typename T > |
void | RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index) |
|
template<typename T > |
void | ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter) |
|
template<typename T > |
void | RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter) |
|
template<typename T > |
void | SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value) |
|
template<typename T > |
void | ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply) |
|
template<typename T > |
void | ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply) |
|
template<typename Action > |
void | DoWithSuppressingObjectUpdates (Action &&action) |
|
void | BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const |
|
virtual UF::UpdateFieldFlag | GetUpdateFieldFlagsFor (Player const *target) const |
|
virtual void | BuildValuesCreate (ByteBuffer *data, Player const *target) const =0 |
|
virtual void | BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0 |
|
virtual bool | AddToObjectUpdate ()=0 |
|
virtual void | RemoveFromObjectUpdate ()=0 |
|
void | AddToObjectUpdateIfNeeded () |
|
Definition at line 170 of file Item.h.