1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 18:19:55 +00:00
openmw-tes3mp/apps/openmw/mwworld/actionteleport.hpp

30 lines
737 B
C++

#ifndef GAME_MWWORLD_ACTIONTELEPORT_H
#define GAME_MWWORLD_ACTIONTELEPORT_H
#include <string>
#include <components/esm/defs.hpp>
#include "action.hpp"
namespace MWWorld
{
class ActionTeleport : public Action
{
std::string mCellName;
ESM::Position mPosition;
/// Teleports this actor and also teleports anyone following that actor.
virtual void executeImp (const Ptr& actor);
/// Teleports only the given actor (internal use).
void teleport(const Ptr &actor);
public:
ActionTeleport (const std::string& cellName, const ESM::Position& position);
///< If cellName is empty, an exterior cell is assumed.
};
}
#endif