You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw/mwgui/companionitemmodel.hpp

25 lines
668 B
C++

#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);
MWWorld::Ptr copyItem (const ItemStack& item, size_t count, bool allowAutoEquip = true) override;
void removeItem (const ItemStack& item, size_t count) override;
bool hasProfit(const MWWorld::Ptr& actor);
};
}
#endif