#include "CreatureData.h"
◆ AddItem()
◆ Clear()
void VendorItemData::Clear |
( |
| ) |
|
|
inline |
491 {
492 for (VendorItemList::const_iterator itr =
m_items.begin(); itr !=
m_items.end(); ++itr)
493 delete (*itr);
495 }
References m_items.
◆ Empty()
bool VendorItemData::Empty |
( |
| ) |
const |
|
inline |
◆ FindItemCostPair()
112{
113 for (VendorItemList::const_iterator i =
m_items.begin(); i !=
m_items.end(); ++i)
114 if ((*i)->item == item_id && (*i)->ExtendedCost == extendedCost)
115 return *i;
116 return nullptr;
117}
References m_items.
Referenced by ObjectMgr::IsVendorItemValid().
◆ GetItem()
◆ GetItemCount()
uint8 VendorItemData::GetItemCount |
( |
| ) |
const |
|
inline |
◆ RemoveItem()
bool VendorItemData::RemoveItem |
( |
uint32 |
item_id | ) |
|
93{
94 bool found = false;
95 for (VendorItemList::iterator i =
m_items.begin(); i !=
m_items.end();)
96 {
97 if ((*i)->item == item_id)
98 {
100 found = true;
101 }
102 else
103 ++i;
104 }
105 return found;
106}
References m_items.
◆ m_items