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-05-03 10:23:22 +00:00
|
|
|
class AiPursue : public AiPackage
|
2014-04-02 04:18:22 +00:00
|
|
|
{
|
|
|
|
public:
|
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);
|
|
|
|
///< \return Package completed?
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string mObjectId;
|
|
|
|
|
|
|
|
PathFinder mPathFinder;
|
|
|
|
int mCellX;
|
|
|
|
int mCellY;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|