TrinityCore
Item.cpp File Reference
#include "Item.h"
#include "ArtifactPackets.h"
#include "AzeriteEmpoweredItem.h"
#include "AzeriteItem.h"
#include "Bag.h"
#include "CollectionMgr.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "Containers.h"
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "GameTables.h"
#include "GameTime.h"
#include "ItemBonusMgr.h"
#include "ItemEnchantmentMgr.h"
#include "ItemPackets.h"
#include "Log.h"
#include "Loot.h"
#include "LootItemStorage.h"
#include "LootMgr.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "StringConvert.h"
#include "TradeData.h"
#include "UpdateData.h"
#include "World.h"
#include "WorldSession.h"
#include <sstream>
+ Include dependency graph for Item.cpp:

Go to the source code of this file.

Enumerations

enum class  ItemTransmogrificationWeaponCategory : uint8 {
  MELEE_2H , RANGED , AXE_MACE_SWORD_1H , DAGGER ,
  FIST , INVALID
}
 

Functions

ItemNewItemOrBag (ItemTemplate const *proto)
 
void AddItemsSetItem (Player *player, Item const *item)
 
void RemoveItemsSetItem (Player *player, Item const *item)
 
bool ItemCanGoIntoBag (ItemTemplate const *pProto, ItemTemplate const *pBagProto)
 
void AddItemToUpdateQueueOf (Item *item, Player *player)
 
void RemoveItemFromUpdateQueueOf (Item *item, Player *player)
 
static ItemTransmogrificationWeaponCategory GetTransmogrificationWeaponCategory (ItemTemplate const *proto)
 

Variables

ItemModifier const AppearanceModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
ItemModifier const IllusionModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
ItemModifier const SecondaryAppearanceModifierSlotBySpec [MAX_SPECIALIZATIONS]
 
int32 const ItemTransmogrificationSlots [MAX_INVTYPE]
 

Enumeration Type Documentation

◆ ItemTransmogrificationWeaponCategory

Enumerator
MELEE_2H 
RANGED 
AXE_MACE_SWORD_1H 
DAGGER 
FIST 
INVALID 

Definition at line 1981 of file Item.cpp.

Function Documentation

◆ AddItemsSetItem()

void AddItemsSetItem ( Player player,
Item const *  item 
)

Definition at line 66 of file Item.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddItemToUpdateQueueOf()

void AddItemToUpdateQueueOf ( Item item,
Player player 
)

Definition at line 1197 of file Item.cpp.

◆ GetTransmogrificationWeaponCategory()

static ItemTransmogrificationWeaponCategory GetTransmogrificationWeaponCategory ( ItemTemplate const *  proto)
static

Definition at line 1995 of file Item.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ItemCanGoIntoBag()

bool ItemCanGoIntoBag ( ItemTemplate const *  pProto,
ItemTemplate const *  pBagProto 
)

Definition at line 208 of file Item.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewItemOrBag()

Item * NewItemOrBag ( ItemTemplate const *  proto)

Definition at line 52 of file Item.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveItemFromUpdateQueueOf()

void RemoveItemFromUpdateQueueOf ( Item item,
Player player 
)

Definition at line 1218 of file Item.cpp.

+ Here is the caller graph for this function:

◆ RemoveItemsSetItem()

void RemoveItemsSetItem ( Player player,
Item const *  item 
)

Definition at line 155 of file Item.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ AppearanceModifierSlotBySpec

ItemModifier const AppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]
Initial value:

Definition at line 283 of file Item.cpp.

◆ IllusionModifierSlotBySpec

ItemModifier const IllusionModifierSlotBySpec[MAX_SPECIALIZATIONS]
Initial value:

Definition at line 292 of file Item.cpp.

◆ ItemTransmogrificationSlots

int32 const ItemTransmogrificationSlots[MAX_INVTYPE]

Definition at line 2028 of file Item.cpp.

◆ SecondaryAppearanceModifierSlotBySpec

ItemModifier const SecondaryAppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]