openmw-tes3coop/apps/openmw/mwmechanics/aitravel.hpp
terrorfisch 0871d45790 Draft how to move temporary package state to CharacterController.
Example for a few values shown in AiWander.
2014-10-08 10:58:52 +02:00

46 lines
979 B
C++

#ifndef GAME_MWMECHANICS_AITRAVEL_H
#define GAME_MWMECHANICS_AITRAVEL_H
#include "aipackage.hpp"
#include "pathfinding.hpp"
namespace ESM
{
namespace AiSequence
{
struct AiTravel;
}
}
namespace MWMechanics
{
/// \brief Causes the AI to travel to the specified point
class AiTravel : public AiPackage
{
public:
/// Default constructor
AiTravel(float x, float y, float z);
AiTravel(const ESM::AiSequence::AiTravel* travel);
void writeState(ESM::AiSequence::AiSequence &sequence) const;
virtual AiTravel *clone() const;
virtual bool execute (const MWWorld::Ptr& actor, AiState& state, float duration);
virtual int getTypeId() const;
private:
float mX;
float mY;
float mZ;
int mCellX;
int mCellY;
PathFinder mPathFinder;
};
}
#endif