OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
companionitemmodel.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_COMPANION_ITEM_MODEL_H
2 #define MWGUI_COMPANION_ITEM_MODEL_H
3 
4 #include "inventoryitemmodel.hpp"
5 
6 namespace MWGui
7 {
8 
12  {
13  public:
14  CompanionItemModel (const MWWorld::Ptr& actor);
15 
16  virtual MWWorld::Ptr copyItem (const ItemStack& item, size_t count, bool setNewOwner);
17  virtual void removeItem (const ItemStack& item, size_t count);
18 
19  bool hasProfit(const MWWorld::Ptr& actor);
20  };
21 
22 }
23 
24 #endif
bool hasProfit(const MWWorld::Ptr &actor)
Definition: companionitemmodel.cpp:44
A single item stack managed by an item model.
Definition: itemmodel.hpp:12
The companion item model keeps track of the companion's profit by monitoring which items are being ad...
Definition: companionitemmodel.hpp:11
virtual void removeItem(const ItemStack &item, size_t count)
Definition: companionitemmodel.cpp:36
CompanionItemModel(const MWWorld::Ptr &actor)
Definition: companionitemmodel.cpp:23
Definition: inventoryitemmodel.hpp:9
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual MWWorld::Ptr copyItem(const ItemStack &item, size_t count, bool setNewOwner)
Definition: companionitemmodel.cpp:28