OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aiface.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWMECHANICS_AIFACE_H
2 #define GAME_MWMECHANICS_AIFACE_H
3 
4 #include "aipackage.hpp"
5 
6 namespace MWMechanics
7 {
9  class AiFace : public AiPackage {
10  public:
11  AiFace(float targetX, float targetY);
12 
13  virtual AiPackage *clone() const;
14 
15  virtual bool execute (const MWWorld::Ptr& actor, CharacterController& characterController, AiState& state, float duration);
16 
17  virtual int getTypeId() const;
18 
19  virtual unsigned int getPriority() const;
20 
21  virtual bool canCancel() const { return false; }
22  virtual bool shouldCancelPreviousAi() const { return false; }
23 
24  private:
26  };
27 }
28 
29 #endif
AiFace(float targetX, float targetY)
Definition: aiface.cpp:7
virtual bool execute(const MWWorld::Ptr &actor, CharacterController &characterController, AiState &state, float duration)
Definition: aiface.cpp:17
virtual int getTypeId() const
Definition: aiface.cpp:23
Base class for AI packages.
Definition: aipackage.hpp:32
Definition: character.hpp:145
float mTargetY
Definition: aiface.hpp:25
virtual unsigned int getPriority() const
Higher number is higher priority (0 being the lowest)
Definition: aiface.cpp:28
virtual AiPackage * clone() const
Clones the package.
Definition: aiface.cpp:12
AiPackage which makes an actor face a certain direction.
Definition: aiface.hpp:9
virtual bool shouldCancelPreviousAi() const
Upon adding this Ai package, should the Ai Sequence attempt to cancel previous Ai packages (default t...
Definition: aiface.hpp:22
float mTargetX
Definition: aiface.hpp:25
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual bool canCancel() const
Can this Ai package be canceled? (default true)
Definition: aiface.hpp:21