1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-13 21:40:11 +00:00
OpenMW/apps/openmw/mwworld/action.hpp
2012-08-26 11:47:45 -03:00

37 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