OpenMW
|
The pickpocket item model randomly hides item stacks based on a specified chance. Equipped items are always hidden. More...
#include <pickpocketitemmodel.hpp>
Public Member Functions | |
PickpocketItemModel (const MWWorld::Ptr &thief, ItemModel *sourceModel) | |
virtual ItemStack | getItem (ModelIndex index) |
throws for invalid index | |
virtual size_t | getItemCount () |
virtual void | update () |
virtual void | removeItem (const ItemStack &item, size_t count) |
Private Attributes | |
std::vector< ItemStack > | mHiddenItems |
std::vector< ItemStack > | mItems |
The pickpocket item model randomly hides item stacks based on a specified chance. Equipped items are always hidden.
MWGui::PickpocketItemModel::PickpocketItemModel | ( | const MWWorld::Ptr & | thief, |
ItemModel * | sourceModel | ||
) |
ItemStack MWGui::PickpocketItemModel::getItem | ( | ModelIndex | index | ) | [virtual] |
throws for invalid index
Implements MWGui::ItemModel.
size_t MWGui::PickpocketItemModel::getItemCount | ( | ) | [virtual] |
Implements MWGui::ItemModel.
void MWGui::PickpocketItemModel::removeItem | ( | const ItemStack & | item, |
size_t | count | ||
) | [virtual] |
Reimplemented from MWGui::ProxyItemModel.
void MWGui::PickpocketItemModel::update | ( | ) | [virtual] |
Implements MWGui::ItemModel.
std::vector<ItemStack> MWGui::PickpocketItemModel::mHiddenItems [private] |
std::vector<ItemStack> MWGui::PickpocketItemModel::mItems [private] |