1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:49:55 +00:00
openmw-tes3mp/apps/openmw/mwmechanics/aitravel.hpp

45 lines
1 KiB
C++
Raw Normal View History

2012-11-15 21:15:20 +00:00
#ifndef GAME_MWMECHANICS_AITRAVEL_H
#define GAME_MWMECHANICS_AITRAVEL_H
2013-03-26 17:01:01 +00:00
#include "aipackage.hpp"
2013-03-31 17:30:03 +00:00
#include "pathfinding.hpp"
2013-03-26 17:01:01 +00:00
2014-06-12 21:27:04 +00:00
namespace ESM
{
namespace AiSequence
{
struct AiTravel;
}
}
2013-03-26 17:01:01 +00:00
namespace MWMechanics
2014-06-12 21:27:04 +00:00
{
/// \brief Causes the AI to travel to the specified point
2013-03-26 17:01:01 +00:00
class AiTravel : public AiPackage
{
2014-06-12 21:27:04 +00:00
public:
/// Default constructor
2013-03-26 17:01:01 +00:00
AiTravel(float x, float y, float z);
2014-06-12 21:27:04 +00:00
AiTravel(const ESM::AiSequence::AiTravel* travel);
/// Simulates the passing of time
virtual void fastForward(const MWWorld::Ptr& actor, AiState& state);
2014-06-12 21:27:04 +00:00
void writeState(ESM::AiSequence::AiSequence &sequence) const;
2013-03-26 17:01:01 +00:00
virtual AiTravel *clone() const;
virtual bool execute (const MWWorld::Ptr& actor, CharacterController& characterController, AiState& state, float duration);
2013-03-26 17:01:01 +00:00
virtual int getTypeId() const;
private:
float mX;
float mY;
float mZ;
};
2012-11-14 17:42:04 +00:00
}
2012-11-15 21:15:20 +00:00
#endif