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