openmw-tes3coop/apps/openmw/mwworld/action.hpp
2012-08-26 11:47:45 -03:00

36 lines
675 B
C++

#ifndef GAME_MWWORLD_ACTION_H
#define GAME_MWWORLD_ACTION_H
#include <string>
namespace MWWorld
{
class Ptr;
/// \brief Abstract base for actions
class Action
{
std::string mSoundId;
// not implemented
Action (const Action& action);
Action& operator= (const Action& action);
virtual void executeImp (const Ptr& actor) = 0;
protected:
bool teleport; //True if the action will teleport the actor
public:
Action();
virtual ~Action();
void execute (const Ptr& actor);
void setSound (const std::string& id);
};
}
#endif