1 #ifndef GAME_MWWORLD_ACTION_H
2 #define GAME_MWWORLD_ACTION_H
32 Action (
bool keepSound =
false,
const Ptr& target =
Ptr());
42 void setSound (
const std::string&
id);
void setSound(const std::string &id)
Definition: action.cpp:53
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:15
void setSoundOffset(float offset)
Definition: action.cpp:58
std::string mSoundId
Definition: action.hpp:13
const Ptr & getTarget() const
Definition: action.cpp:10
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:23
float mSoundOffset
Definition: action.hpp:15
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void execute(const Ptr &actor)
Definition: action.cpp:25