1 #ifndef GAME_MWMECHANICS_AICAST_H
2 #define GAME_MWMECHANICS_AICAST_H
4 #include "../mwbase/world.hpp"
13 AiCast(
const std::string& targetId,
const std::string& spellId,
bool manualSpell=
false);
AiPackage which makes an actor to cast given spell.
Definition: aicast.hpp:11
AiCast(const std::string &targetId, const std::string &spellId, bool manualSpell=false)
Definition: aicast.cpp:13
float mDistance
Definition: aicast.hpp:33
virtual bool execute(const MWWorld::Ptr &actor, CharacterController &characterController, AiState &state, float duration)
Definition: aicast.cpp:26
virtual MWWorld::Ptr getTarget() const
Get the target actor the AI is targeted at (not applicable to all AI packages, default return empty P...
Definition: aicast.cpp:81
Base class for AI packages.
Definition: aipackage.hpp:33
std::string mSpellId
Definition: aicast.hpp:30
virtual int getTypeId() const
Definition: aicast.cpp:88
Definition: character.hpp:154
virtual AiPackage * clone() const
Clones the package.
Definition: aicast.cpp:21
bool mCasting
Definition: aicast.hpp:31
virtual bool canCancel() const
Can this Ai package be canceled? (default true)
Definition: aicast.hpp:25
virtual unsigned int getPriority() const
Higher number is higher priority (0 being the lowest)
Definition: aicast.cpp:93
std::string mTargetId
Definition: aicast.hpp:29
virtual bool shouldCancelPreviousAi() const
Upon adding this Ai package, should the Ai Sequence attempt to cancel previous Ai packages (default t...
Definition: aicast.hpp:26
bool mManual
Definition: aicast.hpp:32
Pointer to a LiveCellRef.
Definition: ptr.hpp:19