2013-05-11 18:38:27 +02:00
|
|
|
#ifndef MWGUI_COMPANION_ITEM_MODEL_H
|
|
|
|
#define MWGUI_COMPANION_ITEM_MODEL_H
|
|
|
|
|
|
|
|
#include "inventoryitemmodel.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
/// @brief The companion item model keeps track of the companion's profit by
|
|
|
|
/// monitoring which items are being added to and removed from the model.
|
|
|
|
class CompanionItemModel : public InventoryItemModel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CompanionItemModel(const MWWorld::Ptr& actor);
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
MWWorld::Ptr copyItem(const ItemStack& item, size_t count, bool allowAutoEquip = true) override;
|
|
|
|
void removeItem(const ItemStack& item, size_t count) override;
|
2015-01-31 02:08:37 +01:00
|
|
|
|
|
|
|
bool hasProfit(const MWWorld::Ptr& actor);
|
2013-05-11 18:38:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|