2014-05-03 10:23:22 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_AIPURSUE_H
|
|
|
|
#define GAME_MWMECHANICS_AIPURSUE_H
|
2014-04-02 04:18:22 +00:00
|
|
|
|
|
|
|
#include "aipackage.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "pathfinding.hpp"
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
2014-04-30 03:40:59 +00:00
|
|
|
/// \brief Makes the actor very closely follow the actor
|
2014-05-13 01:05:32 +00:00
|
|
|
/** Used for arresting players. Causes the actor to run to the pursued actor and activate them, to arrest them. **/
|
|
|
|
class AiPursue : public AiPackage
|
2014-04-02 04:18:22 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-04-30 03:40:59 +00:00
|
|
|
///Constructor
|
|
|
|
/** \param objectId Actor to pursue **/
|
2014-05-03 10:23:22 +00:00
|
|
|
AiPursue(const std::string &objectId);
|
|
|
|
virtual AiPursue *clone() const;
|
2014-04-02 04:18:22 +00:00
|
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration);
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string mObjectId;
|
|
|
|
int mCellX;
|
|
|
|
int mCellY;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|