1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/apps/openmw/mwmechanics/aiescort.hpp

35 lines
885 B
C++
Raw Normal View History

2012-11-15 21:15:20 +00:00
#ifndef GAME_MWMECHANICS_AIESCORT_H
#define GAME_MWMECHANICS_AIESCORT_H
2012-11-14 17:42:04 +00:00
2012-11-15 21:15:20 +00:00
#include "aipackage.hpp"
#include <string>
2012-11-14 17:42:04 +00:00
namespace MWMechanics
{
2012-11-16 17:38:15 +00:00
class AiEscort : public AiPackage
{
public:
2012-11-16 19:28:20 +00:00
AiEscort(const std::string &actorId,int duration, float x, float y, float z);
2012-11-30 00:16:16 +00: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 17:38:15 +00:00
virtual AiEscort *clone() const;
2012-11-14 17:42:04 +00:00
2012-11-16 17:38:15 +00:00
virtual bool execute (const MWWorld::Ptr& actor);
2012-11-16 19:28:20 +00:00
///< \return Package completed?
2012-11-14 17:42:04 +00:00
2012-11-16 17:38:15 +00:00
virtual int getTypeId() const;
2012-11-14 17:42:04 +00:00
2012-11-16 17:38:15 +00:00
private:
2012-11-16 19:28:20 +00:00
std::string mActorId;
2012-11-30 00:16:16 +00:00
std::string mCellId;
2012-11-16 17:38:15 +00:00
float mX;
float mY;
float mZ;
int mDuration;
2012-11-15 21:15:20 +00:00
2012-11-16 17:38:15 +00:00
};
2012-11-14 17:42:04 +00:00
}
2012-11-15 21:15:20 +00:00
#endif