OpenMW
apps/openmw/mwmechanics/aiescort.hpp
Go to the documentation of this file.
00001 #ifndef GAME_MWMECHANICS_AIESCORT_H
00002 #define GAME_MWMECHANICS_AIESCORT_H
00003 
00004 #include "aipackage.hpp"
00005 #include <string>
00006 
00007 #include "pathfinding.hpp"
00008 
00009 namespace MWMechanics
00010 {
00011     class AiEscort : public AiPackage
00012     {
00013         public:
00014             AiEscort(const std::string &actorId,int duration, float x, float y, float z);
00016             AiEscort(const std::string &actorId,const std::string &cellId,int duration, float x, float y, float z);
00018 
00019             virtual AiEscort *clone() const;
00020 
00021             virtual bool execute (const MWWorld::Ptr& actor,float duration);
00023 
00024             virtual int getTypeId() const;
00025 
00026         private:
00027             std::string mActorId;
00028             std::string mCellId;
00029             float mX;
00030             float mY;
00031             float mZ;
00032             float mMaxDist;
00033             unsigned int mStartingSecond;
00034             unsigned int mDuration;
00035 
00036             PathFinder mPathFinder;
00037             int cellX;
00038             int cellY;
00039     };
00040 }
00041 #endif