mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 10:49:57 +00:00
35 lines
701 B
C++
35 lines
701 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;
|
|
bool mTeleport;
|
|
|
|
// not implemented
|
|
Action (const Action& action);
|
|
Action& operator= (const Action& action);
|
|
|
|
virtual void executeImp (const Ptr& actor) = 0;
|
|
|
|
public:
|
|
|
|
Action (bool teleport = false);
|
|
///< \param teleport action will teleport the actor
|
|
|
|
virtual ~Action();
|
|
|
|
void execute (const Ptr& actor);
|
|
|
|
void setSound (const std::string& id);
|
|
};
|
|
}
|
|
|
|
#endif
|