1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/apps/openmw/mwworld/actionteleport.hpp

31 lines
737 B
C++
Raw Normal View History

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