1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwmechanics/aiescort.hpp

42 lines
1.0 KiB
C++
Raw Normal View History

2012-11-15 22:15:20 +01:00
#ifndef GAME_MWMECHANICS_AIESCORT_H
#define GAME_MWMECHANICS_AIESCORT_H
2012-11-14 18:42:04 +01:00
2012-11-15 22:15:20 +01:00
#include "aipackage.hpp"
#include <string>
2012-11-14 18:42:04 +01:00
#include "pathfinding.hpp"
2012-11-14 18:42:04 +01:00
namespace MWMechanics
{
class AiEscort : public AiPackage
{
public:
2012-11-16 20:28:20 +01:00
AiEscort(const std::string &actorId,int duration, float x, float y, float z);
2012-11-30 02:16:16 +02:00
///< \implement AiEscort
AiEscort(const std::string &actorId,const std::string &cellId,int duration, float x, float y, float z);
///< \implement AiEscortCell
2012-11-16 18:38:15 +01:00
virtual AiEscort *clone() const;
2012-11-14 18:42:04 +01:00
2012-11-16 18:38:15 +01:00
virtual bool execute (const MWWorld::Ptr& actor);
2012-11-16 20:28:20 +01:00
///< \return Package completed?
2012-11-14 18:42:04 +01:00
2012-11-16 18:38:15 +01:00
virtual int getTypeId() const;
2012-11-14 18:42:04 +01:00
2012-11-16 18:38:15 +01:00
private:
2012-11-16 20:28:20 +01:00
std::string mActorId;
2012-11-30 02:16:16 +02:00
std::string mCellId;
2012-11-16 18:38:15 +01:00
float mX;
float mY;
float mZ;
2013-05-08 20:02:24 -07:00
float mMaxDist;
unsigned int mStartingSecond;
unsigned int mDuration;
PathFinder mPathFinder;
int cellX;
int cellY;
};
}
#endif