Small header cleanup

This commit is contained in:
Chris Robinson 2013-08-15 01:21:43 -07:00
parent 86f2cd5848
commit 0f2b2ff1ce
2 changed files with 14 additions and 12 deletions

View file

@ -7,7 +7,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "action.hpp" #include "ptr.hpp"
namespace Ogre namespace Ogre
{ {
@ -43,6 +43,7 @@ namespace MWWorld
class InventoryStore; class InventoryStore;
class PhysicsSystem; class PhysicsSystem;
class CellStore; class CellStore;
class Action;
/// \brief Base class for referenceable esm records /// \brief Base class for referenceable esm records
class Class class Class
@ -227,17 +228,6 @@ namespace MWWorld
/// ///
/// (default implementation: return false) /// (default implementation: return false)
static const Class& get (const std::string& key);
///< If there is no class for this \a key, an exception is thrown.
static const Class& get (const Ptr& ptr)
{
return get (ptr.getTypeName());
}
///< If there is no class for this pointer, an exception is thrown.
static void registerClass (const std::string& key, boost::shared_ptr<Class> instance);
virtual std::string getUpSoundId (const Ptr& ptr) const; virtual std::string getUpSoundId (const Ptr& ptr) const;
///< Return the up sound ID of \a ptr or throw an exception, if class does not support ID retrieval ///< Return the up sound ID of \a ptr or throw an exception, if class does not support ID retrieval
/// (default implementation: throw an exception) /// (default implementation: throw an exception)
@ -296,6 +286,17 @@ namespace MWWorld
virtual bool isNpc() const { virtual bool isNpc() const {
return false; return false;
} }
static const Class& get (const std::string& key);
///< If there is no class for this \a key, an exception is thrown.
static const Class& get (const Ptr& ptr)
{
return get(ptr.getTypeName());
}
///< If there is no class for this pointer, an exception is thrown.
static void registerClass (const std::string& key, boost::shared_ptr<Class> instance);
}; };
} }

View file

@ -2,6 +2,7 @@
#define GAME_MWWORLD_PTR_H #define GAME_MWWORLD_PTR_H
#include "cellstore.hpp" #include "cellstore.hpp"
#include "livecellref.hpp"
namespace MWWorld namespace MWWorld
{ {