2010-08-03 13:24:44 +00:00
|
|
|
#ifndef GAME_MWCLASS_CREATURELEVLIST_H
|
|
|
|
#define GAME_MWCLASS_CREATURELEVLIST_H
|
|
|
|
|
|
|
|
#include "../mwworld/class.hpp"
|
|
|
|
|
|
|
|
namespace MWClass
|
|
|
|
{
|
|
|
|
class CreatureLevList : public MWWorld::Class
|
|
|
|
{
|
2014-01-18 06:26:27 +00:00
|
|
|
void ensureCustomData (const MWWorld::Ptr& ptr) const;
|
|
|
|
|
2010-08-03 13:24:44 +00:00
|
|
|
public:
|
|
|
|
|
2014-07-18 07:56:58 +00:00
|
|
|
/// Return ID of \a ptr
|
|
|
|
virtual std::string getId (const MWWorld::Ptr& ptr) const;
|
|
|
|
|
2010-08-03 15:11:41 +00:00
|
|
|
virtual std::string getName (const MWWorld::Ptr& ptr) const;
|
|
|
|
///< \return name (the one that is to be presented to the user; not the internal one);
|
|
|
|
/// can return an empty string.
|
2010-08-03 13:24:44 +00:00
|
|
|
|
|
|
|
static void registerSelf();
|
2014-01-18 06:26:27 +00:00
|
|
|
|
|
|
|
virtual void insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const;
|
|
|
|
///< Add reference into a cell for rendering
|
2014-05-14 22:23:53 +00:00
|
|
|
|
|
|
|
virtual void readAdditionalState (const MWWorld::Ptr& ptr, const ESM::ObjectState& state)
|
|
|
|
const;
|
|
|
|
///< Read additional state from \a state into \a ptr.
|
|
|
|
|
|
|
|
virtual void writeAdditionalState (const MWWorld::Ptr& ptr, ESM::ObjectState& state)
|
|
|
|
const;
|
|
|
|
///< Write additional state from \a ptr into \a state.
|
2014-05-17 07:05:41 +00:00
|
|
|
|
|
|
|
virtual void respawn (const MWWorld::Ptr& ptr) const;
|
2010-08-03 13:24:44 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|