1 #ifndef GAME_MWMECHANICS_AIFOLLOW_H
2 #define GAME_MWMECHANICS_AIFOLLOW_H
43 AiFollow(
const std::string &actorId,
float duration,
float x,
float y,
float z);
44 AiFollow(
const std::string &actorId,
const std::string &CellId,
float duration,
float x,
float y,
float z);
48 AiFollow(
const MWWorld::Ptr& actor,
const std::string &CellId,
float duration,
float X,
float Y,
float Z);
base class for the temporary storage of AiPackages.
Definition: aistate.hpp:90
bool mTurnActorToTarget
Definition: aifollow.hpp:27
std::string getFollowedActor()
Returns the actor being followed.
Definition: aifollow.cpp:210
static int mFollowIndexCounter
Definition: aifollow.hpp:89
virtual void writeState(ESM::AiSequence::AiSequence &sequence) const
Definition: aifollow.cpp:230
bool mAlwaysFollow
This will make the actor always follow.
Definition: aifollow.hpp:78
bool mCommanded
Definition: aifollow.hpp:79
bool isCommanded() const
Definition: aifollow.cpp:225
virtual bool sideWithTarget() const
Return true if having this AiPackage makes the actor side with the target in fights (default false) ...
Definition: aifollow.hpp:54
void fastForward(const MWWorld::Ptr &actor, AiState &state)
Simulates the passing of time.
Definition: aifollow.cpp:255
virtual AiFollow * clone() const
Clones the package.
Definition: aifollow.cpp:215
float mTimer
Definition: aifollow.hpp:24
Base class for AI packages.
Definition: aipackage.hpp:33
float mRemainingDuration
Definition: aifollow.hpp:81
float mY
Definition: aifollow.hpp:83
Definition: aisequence.hpp:102
virtual int getTypeId() const
Definition: aifollow.cpp:220
Definition: character.hpp:154
virtual bool shouldCancelPreviousAi() const
Upon adding this Ai package, should the Ai Sequence attempt to cancel previous Ai packages (default t...
Definition: aifollow.hpp:56
int getFollowIndex() const
Definition: aifollow.cpp:250
AiFollowStorage()
Definition: aifollow.hpp:29
AiPackage for an actor to follow another actor/the PC.
Definition: aifollow.hpp:40
AiFollow(const std::string &actorId, float duration, float x, float y, float z)
Definition: aifollow.cpp:22
Definition: aifollow.hpp:22
std::string mCellId
Definition: aifollow.hpp:85
bool mMoving
Definition: aifollow.hpp:25
float mX
Definition: aifollow.hpp:82
Definition: aisequence.hpp:151
float mDuration
Definition: aifollow.hpp:80
int mFollowIndex
Definition: aifollow.hpp:87
float mZ
Definition: aifollow.hpp:84
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
bool mActive
Definition: aifollow.hpp:86
virtual bool followTargetThroughDoors() const
Return true if the actor should follow the target through teleport doors (default false) ...
Definition: aifollow.hpp:55
float mTargetAngleRadians
Definition: aifollow.hpp:26
virtual bool execute(const MWWorld::Ptr &actor, CharacterController &characterController, AiState &state, float duration)
Definition: aifollow.cpp:75