OpenMW
|
Abstract base for actions. More...
#include <action.hpp>
Public Member Functions | |
const Ptr & | getTarget () const |
Action (bool keepSound=false, const Ptr &target=Ptr()) | |
virtual | ~Action () |
virtual bool | isNullAction () |
Is running this action a no-op? (default false) More... | |
void | execute (const Ptr &actor) |
void | setSound (const std::string &id) |
void | setSoundOffset (float offset) |
Protected Member Functions | |
void | setTarget (const Ptr &) |
Private Member Functions | |
Action (const Action &action) | |
Action & | operator= (const Action &action) |
virtual void | executeImp (const Ptr &actor)=0 |
Private Attributes | |
std::string | mSoundId |
bool | mKeepSound |
float | mSoundOffset |
Ptr | mTarget |
Abstract base for actions.
|
private |
keepSound | Keep playing the sound even if the object the sound is played on is removed. |
|
virtual |
void MWWorld::Action::execute | ( | const Ptr & | actor | ) |
|
privatepure virtual |
Implemented in MWWorld::ActionApplyWithSkill, MWWorld::ActionTeleport, MWWorld::ActionTrap, MWWorld::ActionApply, MWWorld::FailedAction, MWWorld::ActionOpen, MWWorld::ActionDoor, MWWorld::ActionEat, MWWorld::ActionEquip, MWWorld::ActionRead, MWWorld::ActionSoulgem, MWWorld::ActionTake, MWWorld::ActionTalk, MWWorld::NullAction, MWWorld::ActionAlchemy, and MWWorld::ActionRepair.
const MWWorld::Ptr & MWWorld::Action::getTarget | ( | ) | const |
|
inlinevirtual |
Is running this action a no-op? (default false)
Reimplemented in MWWorld::NullAction.
void MWWorld::Action::setSound | ( | const std::string & | id | ) |
void MWWorld::Action::setSoundOffset | ( | float | offset | ) |
|
protected |
|
private |
|
private |
|
private |
|
private |