1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:19:56 +00:00
openmw-tes3mp/apps/openmw/mwmechanics/aipursue.hpp

33 lines
717 B
C++

#ifndef GAME_MWMECHANICS_AIPURSUE_H
#define GAME_MWMECHANICS_AIPURSUE_H
#include "aipackage.hpp"
#include "../mwbase/world.hpp"
#include "pathfinding.hpp"
namespace MWMechanics
{
class AiPursue : public AiPackage
{
public:
AiPursue(const MWWorld::Ptr target);
virtual AiPursue *clone() const;
virtual bool execute (const MWWorld::Ptr& actor,float duration);
///< \return Package completed?
virtual int getTypeId() const;
virtual MWWorld::Ptr getTarget() const;
private:
MWWorld::Ptr mTarget;
PathFinder mPathFinder;
int mCellX;
int mCellY;
};
}
#endif