OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWWorld::ActionTeleport Class Reference

#include <actionteleport.hpp>

Inheritance diagram for MWWorld::ActionTeleport:
Collaboration diagram for MWWorld::ActionTeleport:

Public Member Functions

 ActionTeleport (const std::string &cellName, const ESM::Position &position, bool teleportFollowers)
 
- Public Member Functions inherited from MWWorld::Action
const PtrgetTarget () const
 
 Action (bool keepSound=false, const Ptr &target=Ptr())
 
virtual ~Action ()
 
virtual bool isNullAction ()
 Is running this action a no-op? (default false) More...
 
void execute (const Ptr &actor)
 
void setSound (const std::string &id)
 
void setSoundOffset (float offset)
 

Static Public Member Functions

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. More...
 

Private Member Functions

virtual void executeImp (const Ptr &actor)
 Teleports this actor and also teleports anyone following that actor. More...
 
void teleport (const Ptr &actor)
 Teleports only the given actor (internal use). More...
 

Private Attributes

std::string mCellName
 
ESM::Position mPosition
 
bool mTeleportFollowers
 

Additional Inherited Members

- Protected Member Functions inherited from MWWorld::Action
void setTarget (const Ptr &)
 

Constructor & Destructor Documentation

MWWorld::ActionTeleport::ActionTeleport ( const std::string &  cellName,
const ESM::Position position,
bool  teleportFollowers 
)

If cellName is empty, an exterior cell is assumed.

Parameters
teleportFollowersWhether to teleport any following actors of the target actor as well.

Member Function Documentation

void MWWorld::ActionTeleport::executeImp ( const Ptr actor)
privatevirtual

Teleports this actor and also teleports anyone following that actor.

Implements MWWorld::Action.

Here is the call graph for this function:

void MWWorld::ActionTeleport::getFollowersToTeleport ( const MWWorld::Ptr actor,
std::set< MWWorld::Ptr > &  out 
)
static

Outputs every actor follower who is in teleport range and wasn't ordered to not enter interiors.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ActionTeleport::teleport ( const Ptr actor)
private

Teleports only the given actor (internal use).

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string MWWorld::ActionTeleport::mCellName
private
ESM::Position MWWorld::ActionTeleport::mPosition
private
bool MWWorld::ActionTeleport::mTeleportFollowers
private

The documentation for this class was generated from the following files: