|
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, bool noSound=false) |
| 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 |
|
privatepure virtual |
Implemented in MWWorld::ActionApplyWithSkill, MWWorld::ActionTeleport, MWWorld::ActionTrap, MWWorld::ActionApply, MWWorld::FailedAction, MWWorld::ActionEquip, MWWorld::ActionOpen, MWWorld::ActionRepair, MWWorld::ActionAlchemy, MWWorld::ActionDoor, MWWorld::ActionEat, MWWorld::ActionRead, MWWorld::ActionSoulgem, MWWorld::ActionTake, MWWorld::ActionTalk, and MWWorld::NullAction.
| 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 |
1.8.6