mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
cbfa282f8d
Notes - When the door hits them while it's about to finish closing they will try to walk through the door. - Considerably more works is needed in making the NPC work out troublesome areas where they get stuck
30 lines
869 B
C++
30 lines
869 B
C++
#ifndef GAME_MWMECHANICS_AIACTIVATE_H
|
|
#define GAME_MWMECHANICS_AIACTIVATE_H
|
|
|
|
#include "aipackage.hpp"
|
|
#include <string>
|
|
|
|
#include "pathfinding.hpp"
|
|
|
|
namespace MWMechanics
|
|
{
|
|
/// \brief Causes actor to walk to activatable object and activate it
|
|
/** Will actiavte when close to object or path grid complete **/
|
|
class AiActivate : public AiPackage
|
|
{
|
|
public:
|
|
/// Constructor
|
|
/** \param objectId Reference to object to activate **/
|
|
AiActivate(const std::string &objectId);
|
|
virtual AiActivate *clone() const;
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration);
|
|
virtual int getTypeId() const;
|
|
|
|
private:
|
|
std::string mObjectId;
|
|
int mCellX;
|
|
int mCellY;
|
|
};
|
|
}
|
|
#endif // GAME_MWMECHANICS_AIACTIVATE_H
|