1 #ifndef GAME_MWWORLD_ACTION_H
2 #define GAME_MWWORLD_ACTION_H
32 Action (
bool keepSound =
false,
const Ptr& target =
Ptr());
40 void execute (
const Ptr& actor,
bool noSound =
false);
42 void setSound (
const std::string&
id);
void setSound(const std::string &id)
Definition: action.cpp:61
Ptr mTarget
Definition: action.hpp:16
Action(const Action &action)
Abstract base for actions.
Definition: action.hpp:11
void setTarget(const Ptr &)
Definition: action.cpp:16
void setSoundOffset(float offset)
Definition: action.cpp:66
std::string mSoundId
Definition: action.hpp:13
const Ptr & getTarget() const
Definition: action.cpp:11
void execute(const Ptr &actor, bool noSound=false)
Definition: action.cpp:26
virtual void executeImp(const Ptr &actor)=0
Action & operator=(const Action &action)
virtual bool isNullAction()
Is running this action a no-op? (default false)
Definition: action.hpp:37
bool mKeepSound
Definition: action.hpp:14
virtual ~Action()
Definition: action.cpp:24
float mSoundOffset
Definition: action.hpp:15
Pointer to a LiveCellRef.
Definition: ptr.hpp:19