1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/openmw/mwclass/npc.hpp

35 lines
1.1 KiB
C++
Raw Normal View History

#ifndef GAME_MWCLASS_NPC_H
#define GAME_MWCLASS_NPC_H
2010-08-03 11:03:08 +00:00
#include "../mwworld/class.hpp"
2010-08-03 11:03:08 +00:00
namespace MWClass
2010-08-03 11:03:08 +00:00
{
class Npc : public MWWorld::Class
2010-08-03 11:03:08 +00:00
{
public:
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.
virtual MWMechanics::CreatureStats& getCreatureStats (const MWWorld::Ptr& ptr) const;
2010-08-03 11:03:08 +00:00
///< Return creature stats
virtual boost::shared_ptr<MWWorld::Action> activate (const MWWorld::Ptr& ptr,
const MWWorld::Ptr& actor, const MWWorld::Environment& environment) const;
///< Generate action for activation
2010-08-04 12:37:23 +00:00
virtual MWWorld::ContainerStore<MWWorld::RefData>& getContainerStore (
const MWWorld::Ptr& ptr) const;
///< Return container store
virtual std::string getScript (const MWWorld::Ptr& ptr) const;
///< Return name of the script attached to ptr
2010-08-03 11:03:08 +00:00
static void registerSelf();
};
}
#endif