OpenMW
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MWWorld::Action Class Reference

Abstract base for actions. More...

#include <action.hpp>

List of all members.

Public Member Functions

 Action (bool keepSound=false, const Ptr &target=Ptr())
virtual ~Action ()
void execute (const Ptr &actor)
void setSound (const std::string &id)
void setSoundOffset (float offset)

Protected Member Functions

const PtrgetTarget () const

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)
virtual void MWWorld::Action::executeImp ( const Ptr actor) [private, pure virtual]
const MWWorld::Ptr & MWWorld::Action::getTarget ( ) const [protected]
Action& MWWorld::Action::operator= ( const Action action) [private]
void MWWorld::Action::setSound ( const std::string &  id)
void MWWorld::Action::setSoundOffset ( float  offset)

Member Data Documentation

std::string MWWorld::Action::mSoundId [private]

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