OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aitravel.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWMECHANICS_AITRAVEL_H
2 #define GAME_MWMECHANICS_AITRAVEL_H
3 
4 #include "aipackage.hpp"
5 
6 #include "pathfinding.hpp"
7 
8 namespace ESM
9 {
10 namespace AiSequence
11 {
12  struct AiTravel;
13 }
14 }
15 
16 namespace MWMechanics
17 {
19  class AiTravel : public AiPackage
20  {
21  public:
23  AiTravel(float x, float y, float z);
24  AiTravel(const ESM::AiSequence::AiTravel* travel);
25 
27  virtual void fastForward(const MWWorld::Ptr& actor, AiState& state);
28 
29  void writeState(ESM::AiSequence::AiSequence &sequence) const;
30 
31  virtual AiTravel *clone() const;
32 
33  virtual bool execute (const MWWorld::Ptr& actor, CharacterController& characterController, AiState& state, float duration);
34 
35  virtual int getTypeId() const;
36 
37  private:
38  float mX;
39  float mY;
40  float mZ;
41  };
42 }
43 
44 #endif
virtual void fastForward(const MWWorld::Ptr &actor, AiState &state)
Simulates the passing of time.
Definition: aitravel.cpp:70
float mZ
Definition: aitravel.hpp:40
Definition: aisequence.hpp:80
virtual int getTypeId() const
Definition: aitravel.cpp:65
Base class for AI packages.
Definition: aipackage.hpp:32
Definition: character.hpp:145
virtual bool execute(const MWWorld::Ptr &actor, CharacterController &characterController, AiState &state, float duration)
Definition: aitravel.cpp:47
AiTravel(float x, float y, float z)
Default constructor.
Definition: aitravel.cpp:31
Definition: aisequence.hpp:148
Causes the AI to travel to the specified point.
Definition: aitravel.hpp:19
float mX
Definition: aitravel.hpp:38
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void writeState(ESM::AiSequence::AiSequence &sequence) const
Definition: aitravel.cpp:80
float mY
Definition: aitravel.hpp:39
virtual AiTravel * clone() const
Clones the package.
Definition: aitravel.cpp:42