2012-11-15 21:15:20 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_AITRAVEL_H
|
|
|
|
#define GAME_MWMECHANICS_AITRAVEL_H
|
2012-11-14 17:42:04 +00:00
|
|
|
|
2013-03-06 20:31:47 +00:00
|
|
|
#include "aipackage.hpp"
|
|
|
|
#include "components\esm\loadpgrd.hpp"
|
|
|
|
#include <list>
|
2012-11-14 17:42:04 +00:00
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
2012-11-16 17:38:15 +00:00
|
|
|
class AiTravel : public AiPackage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AiTravel(float x, float y, float z);
|
|
|
|
virtual AiTravel *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);
|
|
|
|
///< \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:
|
|
|
|
float mX;
|
|
|
|
float mY;
|
|
|
|
float mZ;
|
2012-11-15 21:15:20 +00:00
|
|
|
|
2013-03-12 17:44:22 +00:00
|
|
|
int cellX;
|
|
|
|
int cellY;
|
|
|
|
|
2013-03-06 20:31:47 +00:00
|
|
|
bool isPathConstructed;
|
|
|
|
std::list<ESM::Pathgrid::Point> mPath;
|
|
|
|
|
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
|