TrinityCore
Item.h File Reference
#include "Object.h"
#include "Common.h"
#include "DatabaseEnvFwd.h"
#include "ItemDefines.h"
#include "ItemEnchantmentMgr.h"
#include "ItemTemplate.h"
#include "IteratorPair.h"
+ Include dependency graph for Item.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ItemSetEffect
 
struct  BonusData
 
struct  ArtifactPowerData
 
struct  ArtifactData
 
struct  AzeriteItemSelectedEssencesData
 
struct  AzeriteItemData
 
struct  AzeriteEmpoweredItemData
 
struct  ItemAdditionalLoadInfo
 
struct  ItemDynamicFieldGems
 
class  Item
 
struct  Item::ValuesUpdateForPlayerWithMaskSender
 

Namespaces

namespace  WorldPackets
 
namespace  WorldPackets::Item
 

Macros

#define MAX_GEM_SOCKETS   MAX_ITEM_PROTO_SOCKETS
 
#define MAX_ENCHANTMENT_OFFSET   3
 
#define MAX_ITEM_SPELLS   5
 

Enumerations

enum  ItemUpdateState { ITEM_UNCHANGED = 0 , ITEM_CHANGED = 1 , ITEM_NEW = 2 , ITEM_REMOVED = 3 }
 

Functions

bool ItemCanGoIntoBag (ItemTemplate const *proto, ItemTemplate const *pBagProto)
 
ItemNewItemOrBag (ItemTemplate const *proto)
 

Variables

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

Macro Definition Documentation

◆ MAX_ENCHANTMENT_OFFSET

#define MAX_ENCHANTMENT_OFFSET   3

Definition at line 50 of file Item.h.

◆ MAX_GEM_SOCKETS

#define MAX_GEM_SOCKETS   MAX_ITEM_PROTO_SOCKETS

Definition at line 48 of file Item.h.

◆ MAX_ITEM_SPELLS

#define MAX_ITEM_SPELLS   5

Definition at line 60 of file Item.h.

Enumeration Type Documentation

◆ ItemUpdateState

Enumerator
ITEM_UNCHANGED 
ITEM_CHANGED 
ITEM_NEW 
ITEM_REMOVED 

Definition at line 52 of file Item.h.

Function Documentation

◆ ItemCanGoIntoBag()

bool ItemCanGoIntoBag ( ItemTemplate const *  proto,
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:

Variable Documentation

◆ AppearanceModifierSlotBySpec

ItemModifier const AppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]
extern

Definition at line 283 of file Item.cpp.

◆ IllusionModifierSlotBySpec

ItemModifier const IllusionModifierSlotBySpec[MAX_SPECIALIZATIONS]
extern

Definition at line 292 of file Item.cpp.

◆ ItemTransmogrificationSlots

int32 const ItemTransmogrificationSlots[MAX_INVTYPE]
extern

Definition at line 2028 of file Item.cpp.

◆ SecondaryAppearanceModifierSlotBySpec

ItemModifier const SecondaryAppearanceModifierSlotBySpec[MAX_SPECIALIZATIONS]
extern

Definition at line 301 of file Item.cpp.