mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef GAME_MWMECHANICS_AIESCORT_H
|
|
#define GAME_MWMECHANICS_AIESCORT_H
|
|
|
|
#include "aipackage.hpp"
|
|
#include <string>
|
|
|
|
#include "pathfinding.hpp"
|
|
|
|
namespace MWMechanics
|
|
{
|
|
class AiEscort : public AiPackage
|
|
{
|
|
public:
|
|
AiEscort(const std::string &actorId,int duration, float x, float y, float z);
|
|
///< \implement AiEscort
|
|
AiEscort(const std::string &actorId,const std::string &cellId,int duration, float x, float y, float z);
|
|
///< \implement AiEscortCell
|
|
|
|
virtual AiEscort *clone() const;
|
|
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration);
|
|
///< \return Package completed?
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
private:
|
|
std::string mActorId;
|
|
std::string mCellId;
|
|
float mX;
|
|
float mY;
|
|
float mZ;
|
|
float mMaxDist;
|
|
unsigned int mStartingSecond;
|
|
unsigned int mDuration;
|
|
|
|
PathFinder mPathFinder;
|
|
int cellX;
|
|
int cellY;
|
|
};
|
|
}
|
|
#endif
|