@ -92,10 +92,9 @@ namespace MWClass
return std::string("Item Apparatus Down");
}
std::string Apparatus::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Apparatus::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
{
MWWorld::LiveCellRef<ESM::Apparatus> *ref =
ptr.get<ESM::Apparatus>();
const MWWorld::LiveCellRef<ESM::Apparatus> *ref = ptr.get<ESM::Apparatus>();
return ref->mBase->mIcon;
@ -51,7 +51,7 @@ namespace MWClass
virtual std::string getDownSoundId (const MWWorld::Ptr& ptr) const;
///< Return the put down sound Id
virtual std::string getInventoryIcon (const MWWorld::Ptr& ptr) const;
virtual std::string getInventoryIcon (const MWWorld::ConstPtr& ptr) const;
///< Return name of inventory icon.
virtual boost::shared_ptr<MWWorld::Action> use (const MWWorld::Ptr& ptr)
@ -199,10 +199,9 @@ namespace MWClass
return std::string("Item Armor Heavy Down");
std::string Armor::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Armor::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Armor> *ref =
ptr.get<ESM::Armor>();
const MWWorld::LiveCellRef<ESM::Armor> *ref = ptr.get<ESM::Armor>();
@ -64,7 +64,7 @@ namespace MWClass
virtual std::string getEnchantment (const MWWorld::Ptr& ptr) const;
@ -106,10 +106,9 @@ namespace MWClass
return std::string("Item Book Down");
std::string Book::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Book::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Book> *ref =
ptr.get<ESM::Book>();
const MWWorld::LiveCellRef<ESM::Book> *ref = ptr.get<ESM::Book>();
@ -48,7 +48,7 @@ namespace MWClass
@ -158,10 +158,9 @@ namespace MWClass
return std::string("Item Clothes Down");
std::string Clothing::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Clothing::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Clothing> *ref =
ptr.get<ESM::Clothing>();
const MWWorld::LiveCellRef<ESM::Clothing> *ref = ptr.get<ESM::Clothing>();
@ -56,7 +56,7 @@ namespace MWClass
@ -108,10 +108,9 @@ namespace MWClass
return std::string("Item Ingredient Down");
std::string Ingredient::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Ingredient::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Ingredient> *ref =
ptr.get<ESM::Ingredient>();
const MWWorld::LiveCellRef<ESM::Ingredient> *ref = ptr.get<ESM::Ingredient>();
@ -52,7 +52,7 @@ namespace MWClass
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const;
@ -138,10 +138,9 @@ namespace MWClass
std::string Light::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Light::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Light> *ref =
ptr.get<ESM::Light>();
const MWWorld::LiveCellRef<ESM::Light> *ref = ptr.get<ESM::Light>();
@ -102,10 +102,9 @@ namespace MWClass
return std::string("Item Lockpick Down");
std::string Lockpick::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Lockpick::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Lockpick> *ref =
ptr.get<ESM::Lockpick>();
const MWWorld::LiveCellRef<ESM::Lockpick> *ref = ptr.get<ESM::Lockpick>();
@ -120,10 +120,9 @@ namespace MWClass
return std::string("Item Misc Down");
std::string Miscellaneous::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Miscellaneous::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Miscellaneous> *ref =
ptr.get<ESM::Miscellaneous>();
const MWWorld::LiveCellRef<ESM::Miscellaneous> *ref = ptr.get<ESM::Miscellaneous>();
@ -97,10 +97,9 @@ namespace MWClass
return std::string("Item Potion Down");
std::string Potion::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Potion::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Potion> *ref =
ptr.get<ESM::Potion>();
const MWWorld::LiveCellRef<ESM::Potion> *ref = ptr.get<ESM::Potion>();
return std::string("Item Probe Down");
std::string Probe::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Probe::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Probe> *ref =
ptr.get<ESM::Probe>();
const MWWorld::LiveCellRef<ESM::Probe> *ref = ptr.get<ESM::Probe>();
@ -93,10 +93,9 @@ namespace MWClass
return std::string("Item Repair Down");
std::string Repair::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Repair::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Repair> *ref =
ptr.get<ESM::Repair>();
const MWWorld::LiveCellRef<ESM::Repair> *ref = ptr.get<ESM::Repair>();
@ -245,10 +245,9 @@ namespace MWClass
std::string Weapon::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Weapon::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
MWWorld::LiveCellRef<ESM::Weapon> *ref =
ptr.get<ESM::Weapon>();
const MWWorld::LiveCellRef<ESM::Weapon> *ref = ptr.get<ESM::Weapon>();
@ -62,7 +62,7 @@ namespace MWClass
@ -267,7 +267,7 @@ namespace MWWorld
throw std::runtime_error("class does not support soundgen look up");
std::string Class::getInventoryIcon (const MWWorld::Ptr& ptr) const
std::string Class::getInventoryIcon (const MWWorld::ConstPtr& ptr) const
throw std::runtime_error ("class does not have any inventory icon");
@ -248,7 +248,7 @@ namespace MWWorld
virtual float getArmorRating (const MWWorld::Ptr& ptr) const;
///< @return combined armor rating of this actor