OpenMW
|
#include <inventoryitemmodel.hpp>
Public Member Functions | |
InventoryItemModel (const MWWorld::Ptr &actor) | |
virtual ItemStack | getItem (ModelIndex index) |
throws for invalid index | |
virtual ModelIndex | getIndex (ItemStack item) |
virtual size_t | getItemCount () |
virtual void | copyItem (const ItemStack &item, size_t count) |
virtual void | removeItem (const ItemStack &item, size_t count) |
virtual void | update () |
Protected Attributes | |
MWWorld::Ptr | mActor |
Private Attributes | |
std::vector< ItemStack > | mItems |
MWGui::InventoryItemModel::InventoryItemModel | ( | const MWWorld::Ptr & | actor | ) |
void MWGui::InventoryItemModel::copyItem | ( | const ItemStack & | item, |
size_t | count | ||
) | [virtual] |
Implements MWGui::ItemModel.
Reimplemented in MWGui::CompanionItemModel.
ItemModel::ModelIndex MWGui::InventoryItemModel::getIndex | ( | ItemStack | item | ) | [virtual] |
Implements MWGui::ItemModel.
ItemStack MWGui::InventoryItemModel::getItem | ( | ModelIndex | index | ) | [virtual] |
throws for invalid index
Implements MWGui::ItemModel.
size_t MWGui::InventoryItemModel::getItemCount | ( | ) | [virtual] |
Implements MWGui::ItemModel.
void MWGui::InventoryItemModel::removeItem | ( | const ItemStack & | item, |
size_t | count | ||
) | [virtual] |
Implements MWGui::ItemModel.
Reimplemented in MWGui::CompanionItemModel.
void MWGui::InventoryItemModel::update | ( | ) | [virtual] |
Implements MWGui::ItemModel.
MWWorld::Ptr MWGui::InventoryItemModel::mActor [protected] |
std::vector<ItemStack> MWGui::InventoryItemModel::mItems [private] |