From 0f2b2ff1ce0a46afe5590534da0e8b6a8c23d1fd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 Aug 2013 01:21:43 -0700 Subject: [PATCH] Small header cleanup --- apps/openmw/mwworld/class.hpp | 25 +++++++++++++------------ apps/openmw/mwworld/ptr.hpp | 1 + 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/apps/openmw/mwworld/class.hpp b/apps/openmw/mwworld/class.hpp index ebe7375a1..c91000052 100644 --- a/apps/openmw/mwworld/class.hpp +++ b/apps/openmw/mwworld/class.hpp @@ -7,7 +7,7 @@ #include -#include "action.hpp" +#include "ptr.hpp" namespace Ogre { @@ -43,6 +43,7 @@ namespace MWWorld class InventoryStore; class PhysicsSystem; class CellStore; + class Action; /// \brief Base class for referenceable esm records class Class @@ -227,17 +228,6 @@ namespace MWWorld /// /// (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 instance); - 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 /// (default implementation: throw an exception) @@ -296,6 +286,17 @@ namespace MWWorld virtual bool isNpc() const { 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 instance); }; } diff --git a/apps/openmw/mwworld/ptr.hpp b/apps/openmw/mwworld/ptr.hpp index f5f2eedea..240dd83f2 100644 --- a/apps/openmw/mwworld/ptr.hpp +++ b/apps/openmw/mwworld/ptr.hpp @@ -2,6 +2,7 @@ #define GAME_MWWORLD_PTR_H #include "cellstore.hpp" +#include "livecellref.hpp" namespace MWWorld {