forked from mirror/openmw-tes3mp
40 lines
824 B
C++
40 lines
824 B
C++
#ifndef GAME_MWWORLD_ACTION_H
|
|
#define GAME_MWWORLD_ACTION_H
|
|
|
|
#include <string>
|
|
|
|
#include "ptr.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
/// \brief Abstract base for actions
|
|
class Action
|
|
{
|
|
std::string mSoundId;
|
|
bool mTeleport;
|
|
Ptr mTarget;
|
|
|
|
// not implemented
|
|
Action (const Action& action);
|
|
Action& operator= (const Action& action);
|
|
|
|
virtual void executeImp (const Ptr& actor) = 0;
|
|
|
|
protected:
|
|
|
|
const Ptr& getTarget() const;
|
|
|
|
public:
|
|
|
|
Action (bool teleport = false, const Ptr& target = Ptr());
|
|
///< \param teleport action will teleport the actor
|
|
|
|
virtual ~Action();
|
|
|
|
void execute (const Ptr& actor);
|
|
|
|
void setSound (const std::string& id);
|
|
};
|
|
}
|
|
|
|
#endif
|