OregonCore  revision fb2a440-git
Your Favourite TBC server
ItemTemplate Struct Reference

#include <ItemPrototype.h>

Public Member Functions

bool CanChangeEquipStateInCombat () const
 
uint32 GetMaxStackSize () const
 

Public Attributes

uint32 ItemId
 
uint32 Class
 
uint32 SubClass
 
uint32 SoundOverrideSubclass
 
char * Name1
 
uint32 DisplayInfoID
 
uint32 Quality
 
uint32 Flags
 
uint32 BuyCount
 
uint32 BuyPrice
 
uint32 SellPrice
 
uint32 InventoryType
 
uint32 AllowableClass
 
uint32 AllowableRace
 
uint32 ItemLevel
 
uint32 RequiredLevel
 
uint32 RequiredSkill
 
uint32 RequiredSkillRank
 
uint32 RequiredSpell
 
uint32 RequiredHonorRank
 
uint32 RequiredCityRank
 
uint32 RequiredReputationFaction
 
uint32 RequiredReputationRank
 
uint32 MaxCount
 
uint32 Stackable
 
uint32 ContainerSlots
 
_ItemStat ItemStat [10]
 
_Damage Damage [5]
 
uint32 Armor
 
uint32 HolyRes
 
uint32 FireRes
 
uint32 NatureRes
 
uint32 FrostRes
 
uint32 ShadowRes
 
uint32 ArcaneRes
 
uint32 Delay
 
uint32 AmmoType
 
float RangedModRange
 
_Spell Spells [5]
 
uint32 Bonding
 
char * Description
 
uint32 PageText
 
uint32 LanguageID
 
uint32 PageMaterial
 
uint32 StartQuest
 
uint32 LockID
 
uint32 Material
 
uint32 Sheath
 
uint32 RandomProperty
 
uint32 RandomSuffix
 
uint32 Block
 
uint32 ItemSet
 
uint32 MaxDurability
 
uint32 Area
 
uint32 Map
 
uint32 BagFamily
 
uint32 TotemCategory
 
_Socket Socket [3]
 
uint32 socketBonus
 
uint32 GemProperties
 
uint32 RequiredDisenchantSkill
 
float ArmorDamageModifier
 
uint32 ScriptId
 
uint32 DisenchantID
 
uint32 FoodType
 
uint32 MinMoneyLoot
 
uint32 MaxMoneyLoot
 
int32 Duration
 

Detailed Description

Definition at line 532 of file ItemPrototype.h.

Member Function Documentation

bool ItemTemplate::CanChangeEquipStateInCombat ( ) const
inline

Definition at line 604 of file ItemPrototype.h.

References INVTYPE_HOLDABLE, INVTYPE_RELIC, INVTYPE_SHIELD, ITEM_CLASS_PROJECTILE, and ITEM_CLASS_WEAPON.

605  {
606  switch (InventoryType)
607  {
608  case INVTYPE_RELIC:
609  case INVTYPE_SHIELD:
610  case INVTYPE_HOLDABLE:
611  return true;
612  }
613 
614  switch (Class)
615  {
616  case ITEM_CLASS_WEAPON:
618  return true;
619  }
620 
621  return false;
622  }
InventoryType
uint32 ItemTemplate::GetMaxStackSize ( ) const
inline

Definition at line 624 of file ItemPrototype.h.

625  {
626  return (Stackable == 2147483647 || Stackable <= 0) ? uint32(0x7FFFFFFF - 1) : uint32(Stackable);
627  }
uint32 Stackable
ACE_UINT32 uint32
Definition: Define.h:71

Member Data Documentation

uint32 ItemTemplate::AmmoType
uint32 ItemTemplate::ArcaneRes
uint32 ItemTemplate::Armor
float ItemTemplate::ArmorDamageModifier

Definition at line 595 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

char* ItemTemplate::Description

Definition at line 574 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

uint32 ItemTemplate::DisenchantID

Definition at line 597 of file ItemPrototype.h.

Referenced by Spell::CheckItems(), Spell::EffectDisEnchant(), and Player::SendLoot().

int32 ItemTemplate::Duration
uint32 ItemTemplate::FireRes
uint32 ItemTemplate::FoodType

Definition at line 598 of file ItemPrototype.h.

Referenced by Pet::HaveInDiet(), and ObjectMgr::LoadItemTemplates().

uint32 ItemTemplate::FrostRes
uint32 ItemTemplate::HolyRes
uint32 ItemTemplate::LanguageID

Definition at line 576 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

uint32 ItemTemplate::Material
uint32 ItemTemplate::MaxDurability
uint32 ItemTemplate::MaxMoneyLoot

Definition at line 600 of file ItemPrototype.h.

Referenced by Player::SendLoot().

uint32 ItemTemplate::MinMoneyLoot

Definition at line 599 of file ItemPrototype.h.

Referenced by AuctionHouseBot::Initialize(), and Player::SendLoot().

uint32 ItemTemplate::NatureRes
uint32 ItemTemplate::PageMaterial

Definition at line 577 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

float ItemTemplate::RangedModRange

Definition at line 571 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

uint32 ItemTemplate::RequiredCityRank

Definition at line 554 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

uint32 ItemTemplate::RequiredDisenchantSkill
uint32 ItemTemplate::RequiredHonorRank

Definition at line 553 of file ItemPrototype.h.

Referenced by WorldSession::HandleItemQuerySingleOpcode().

uint32 ItemTemplate::RequiredReputationFaction
uint32 ItemTemplate::ScriptId
uint32 ItemTemplate::ShadowRes
uint32 ItemTemplate::socketBonus
uint32 ItemTemplate::SoundOverrideSubclass

The documentation for this struct was generated from the following file: