mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Small header cleanup
This commit is contained in:
parent
86f2cd5848
commit
0f2b2ff1ce
2 changed files with 14 additions and 12 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#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<Class> 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<Class> instance);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define GAME_MWWORLD_PTR_H
|
||||
|
||||
#include "cellstore.hpp"
|
||||
#include "livecellref.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue