OpenMW
Public Member Functions | Private Attributes
MWGui::PickpocketItemModel Class Reference

The pickpocket item model randomly hides item stacks based on a specified chance. Equipped items are always hidden. More...

#include <pickpocketitemmodel.hpp>

List of all members.

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< ItemStackmHiddenItems
std::vector< ItemStackmItems

Detailed Description

The pickpocket item model randomly hides item stacks based on a specified chance. Equipped items are always hidden.


Constructor & Destructor Documentation


Member Function Documentation

throws for invalid index

Implements MWGui::ItemModel.

Implements MWGui::ItemModel.

void MWGui::PickpocketItemModel::removeItem ( const ItemStack item,
size_t  count 
) [virtual]
Todo:
check if player is detected

Reimplemented from MWGui::ProxyItemModel.

Implements MWGui::ItemModel.


Member Data Documentation


The documentation for this class was generated from the following files: