1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 00:15:48 +00:00

fixed typo getCapacity method

This commit is contained in:
scrawl 2012-05-15 22:31:52 +02:00
parent d3a53ae0b8
commit e9ea1fba4e
8 changed files with 8 additions and 8 deletions

View file

@ -180,7 +180,7 @@ namespace MWClass
return info; return info;
} }
float Container::getCapactiy (const MWWorld::Ptr& ptr) const float Container::getCapacity (const MWWorld::Ptr& ptr) const
{ {
ESMS::LiveCellRef<ESM::Container, MWWorld::RefData> *ref = ESMS::LiveCellRef<ESM::Container, MWWorld::RefData> *ref =
ptr.get<ESM::Container>(); ptr.get<ESM::Container>();

View file

@ -36,7 +36,7 @@ namespace MWClass
virtual std::string getScript (const MWWorld::Ptr& ptr) const; virtual std::string getScript (const MWWorld::Ptr& ptr) const;
///< Return name of the script attached to ptr ///< Return name of the script attached to ptr
virtual float getCapactiy (const MWWorld::Ptr& ptr) const; virtual float getCapacity (const MWWorld::Ptr& ptr) const;
///< Return total weight that fits into the object. Throws an exception, if the object can't ///< Return total weight that fits into the object. Throws an exception, if the object can't
/// hold other objects. /// hold other objects.

View file

@ -166,7 +166,7 @@ namespace MWClass
return info; return info;
} }
float Creature::getCapactiy (const MWWorld::Ptr& ptr) const float Creature::getCapacity (const MWWorld::Ptr& ptr) const
{ {
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr); const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
return stats.mAttributes[0].getModified()*5; return stats.mAttributes[0].getModified()*5;

View file

@ -52,7 +52,7 @@ namespace MWClass
virtual std::string getScript (const MWWorld::Ptr& ptr) const; virtual std::string getScript (const MWWorld::Ptr& ptr) const;
///< Return name of the script attached to ptr ///< Return name of the script attached to ptr
virtual float getCapactiy (const MWWorld::Ptr& ptr) const; virtual float getCapacity (const MWWorld::Ptr& ptr) const;
///< Return total weight that fits into the object. Throws an exception, if the object can't ///< Return total weight that fits into the object. Throws an exception, if the object can't
/// hold other objects. /// hold other objects.

View file

@ -324,7 +324,7 @@ namespace MWClass
return info; return info;
} }
float Npc::getCapactiy (const MWWorld::Ptr& ptr) const float Npc::getCapacity (const MWWorld::Ptr& ptr) const
{ {
const MWMechanics::CreatureStats& stats = getCreatureStats (ptr); const MWMechanics::CreatureStats& stats = getCreatureStats (ptr);
return stats.mAttributes[0].getModified()*5; return stats.mAttributes[0].getModified()*5;

View file

@ -74,7 +74,7 @@ namespace MWClass
///< Return desired movement vector (determined based on movement settings, ///< Return desired movement vector (determined based on movement settings,
/// stance and stats). /// stance and stats).
virtual float getCapactiy (const MWWorld::Ptr& ptr) const; virtual float getCapacity (const MWWorld::Ptr& ptr) const;
///< Return total weight that fits into the object. Throws an exception, if the object can't ///< Return total weight that fits into the object. Throws an exception, if the object can't
/// hold other objects. /// hold other objects.

View file

@ -142,7 +142,7 @@ namespace MWWorld
throw std::logic_error ("value not supported by this class"); throw std::logic_error ("value not supported by this class");
} }
float Class::getCapactiy (const MWWorld::Ptr& ptr) const float Class::getCapacity (const MWWorld::Ptr& ptr) const
{ {
throw std::runtime_error ("capacity not supported by this class"); throw std::runtime_error ("capacity not supported by this class");
} }

View file

@ -164,7 +164,7 @@ namespace MWWorld
///< Return trade value of the object. Throws an exception, if the object can't be traded. ///< Return trade value of the object. Throws an exception, if the object can't be traded.
/// (default implementation: throws an exception) /// (default implementation: throws an exception)
virtual float getCapactiy (const MWWorld::Ptr& ptr) const; virtual float getCapacity (const MWWorld::Ptr& ptr) const;
///< Return total weight that fits into the object. Throws an exception, if the object can't ///< Return total weight that fits into the object. Throws an exception, if the object can't
/// hold other objects. /// hold other objects.
/// (default implementation: throws an exception) /// (default implementation: throws an exception)