#include "potion.hpp" #include #include #include "../mwworld/ptr.hpp" #include "containerutil.hpp" namespace MWClass { std::string Potion::getName (const MWWorld::Ptr& ptr) const { ESMS::LiveCellRef *ref = ptr.get(); return ref->base->name; } void Potion::insertIntoContainer (const MWWorld::Ptr& ptr, MWWorld::ContainerStore& containerStore) const { insertIntoContainerStore (ptr, containerStore.potions); } std::string Potion::getScript (const MWWorld::Ptr& ptr) const { ESMS::LiveCellRef *ref = ptr.get(); return ref->base->script; } void Potion::registerSelf() { boost::shared_ptr instance (new Potion); registerClass (typeid (ESM::Potion).name(), instance); } }