TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VendorItem Struct Reference

#include <Creature.h>

Public Member Functions

 VendorItem (uint32 _item, int32 _maxcount, uint32 _incrtime, uint32 _ExtendedCost, uint8 _Type)
 
bool IsGoldRequired (ItemTemplate const *pProto) const
 

Public Attributes

uint32 item
 
uint32 maxcount
 
uint32 incrtime
 
uint32 ExtendedCost
 
uint8 Type
 

Constructor & Destructor Documentation

VendorItem::VendorItem ( uint32  _item,
int32  _maxcount,
uint32  _incrtime,
uint32  _ExtendedCost,
uint8  _Type 
)
inline
370  : item(_item), maxcount(_maxcount), incrtime(_incrtime), ExtendedCost(_ExtendedCost), Type(_Type) { }
uint8 Type
Definition: Creature.h:376
uint32 maxcount
Definition: Creature.h:373
uint32 item
Definition: Creature.h:372
uint32 incrtime
Definition: Creature.h:374
uint32 ExtendedCost
Definition: Creature.h:375

Member Function Documentation

bool VendorItem::IsGoldRequired ( ItemTemplate const pProto) const
inline
379 { return pProto->GetFlags2() & ITEM_FLAG2_EXT_COST_REQUIRES_GOLD || !ExtendedCost; }
uint32 ExtendedCost
Definition: Creature.h:375
Definition: ItemTemplate.h:211

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32 VendorItem::ExtendedCost
uint32 VendorItem::incrtime
uint32 VendorItem::item
uint32 VendorItem::maxcount
uint8 VendorItem::Type

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