OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
actionteleport.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWWORLD_ACTIONTELEPORT_H
2 #define GAME_MWWORLD_ACTIONTELEPORT_H
3 
4 #include <set>
5 #include <string>
6 
8 
9 #include "action.hpp"
10 
11 namespace MWWorld
12 {
13  class ActionTeleport : public Action
14  {
15  std::string mCellName;
18 
20  virtual void executeImp (const Ptr& actor);
21 
23  void teleport(const Ptr &actor);
24 
25  public:
26 
29  ActionTeleport (const std::string& cellName, const ESM::Position& position, bool teleportFollowers);
30 
32  static void getFollowersToTeleport(const MWWorld::Ptr& actor, std::set<MWWorld::Ptr>& out);
33  };
34 }
35 
36 #endif
Definition: actionteleport.hpp:13
static void getFollowersToTeleport(const MWWorld::Ptr &actor, std::set< MWWorld::Ptr > &out)
Outputs every actor follower who is in teleport range and wasn't ordered to not enter interiors...
Definition: actionteleport.cpp:60
ESM::Position mPosition
Definition: actionteleport.hpp:16
Abstract base for actions.
Definition: action.hpp:11
void teleport(const Ptr &actor)
Teleports only the given actor (internal use).
Definition: actionteleport.cpp:34
ActionTeleport(const std::string &cellName, const ESM::Position &position, bool teleportFollowers)
Definition: actionteleport.cpp:13
Definition: defs.hpp:38
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
std::string mCellName
Definition: actionteleport.hpp:15
virtual void executeImp(const Ptr &actor)
Teleports this actor and also teleports anyone following that actor.
Definition: actionteleport.cpp:19
bool mTeleportFollowers
Definition: actionteleport.hpp:17