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

35 lines
744 B
C++
Raw Normal View History

2012-11-15 22:15:20 +01:00
#ifndef GAME_MWMECHANICS_AITRAVEL_H
#define GAME_MWMECHANICS_AITRAVEL_H
2013-03-26 18:01:01 +01:00
#include "aipackage.hpp"
2013-03-31 17:30:03 +00:00
#include "pathfinding.hpp"
2013-03-26 18:01:01 +01:00
namespace MWMechanics
{
/// \brief Causes the AI to travel to the specified point
2013-03-26 18:01:01 +01:00
class AiTravel : public AiPackage
{
public:
/// Default constructor
2013-03-26 18:01:01 +01:00
AiTravel(float x, float y, float z);
virtual AiTravel *clone() const;
2013-10-30 20:42:50 +01:00
virtual bool execute (const MWWorld::Ptr& actor,float duration);
2013-03-26 18:01:01 +01:00
virtual int getTypeId() const;
private:
float mX;
float mY;
float mZ;
2014-02-05 16:12:50 +01:00
int mCellX;
int mCellY;
2013-03-26 18:01:01 +01:00
2013-03-31 17:30:03 +00:00
PathFinder mPathFinder;
2013-03-26 18:01:01 +01:00
};
2012-11-14 18:42:04 +01:00
}
2012-11-15 22:15:20 +01:00
#endif