OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MWWorld::Action Class Referenceabstract

Abstract base for actions. More...

#include <action.hpp>

Inheritance diagram for MWWorld::Action:
Collaboration diagram for MWWorld::Action:

Public Member Functions

const PtrgetTarget () 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)
 
Actionoperator= (const Action &action)
 
virtual void executeImp (const Ptr &actor)=0
 

Private Attributes

std::string mSoundId
 
bool mKeepSound
 
float mSoundOffset
 
Ptr mTarget
 

Detailed Description

Abstract base for actions.

Constructor & Destructor Documentation

MWWorld::Action::Action ( const Action action)
private
MWWorld::Action::Action ( bool  keepSound = false,
const Ptr target = Ptr() 
)
Parameters
keepSoundKeep playing the sound even if the object the sound is played on is removed.
MWWorld::Action::~Action ( )
virtual

Member Function Documentation

void MWWorld::Action::execute ( const Ptr actor,
bool  noSound = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void MWWorld::Action::executeImp ( const Ptr actor)
privatepure virtual
const MWWorld::Ptr & MWWorld::Action::getTarget ( ) const

Here is the caller graph for this function:

virtual bool MWWorld::Action::isNullAction ( )
inlinevirtual

Is running this action a no-op? (default false)

Reimplemented in MWWorld::NullAction.

Action& MWWorld::Action::operator= ( const Action action)
private
void MWWorld::Action::setSound ( const std::string &  id)
void MWWorld::Action::setSoundOffset ( float  offset)
void MWWorld::Action::setTarget ( const Ptr target)
protected

Here is the caller graph for this function:

Member Data Documentation

bool MWWorld::Action::mKeepSound
private
std::string MWWorld::Action::mSoundId
private
float MWWorld::Action::mSoundOffset
private
Ptr MWWorld::Action::mTarget
private

The documentation for this class was generated from the following files: