#include "weapon.hpp" #include #include #include "../mwworld/ptr.hpp" namespace MWClass { bool Weapon::hasItemHealth (const MWWorld::Ptr& ptr) const { return true; } int Weapon::getItemMaxHealth (const MWWorld::Ptr& ptr) const { ESMS::LiveCellRef *ref = ptr.get(); return ref->base->data.health; } void Weapon::registerSelf() { boost::shared_ptr instance (new Weapon); registerClass (typeid (ESM::Weapon).name(), instance); } }