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

List of active local scripts. More...

#include <localscripts.hpp>

Collaboration diagram for MWWorld::LocalScripts:

Public Member Functions

 LocalScripts (const MWWorld::ESMStore &store)
 
void startIteration ()
 Set the iterator to the begin of the script list. More...
 
bool getNext (std::pair< std::string, Ptr > &script)
 
void add (const std::string &scriptName, const Ptr &ptr)
 Add script to collection of active local scripts. More...
 
void addCell (CellStore *cell)
 Add all local scripts in a cell. More...
 
void clear ()
 Clear active local scripts collection. More...
 
void clearCell (CellStore *cell)
 Remove all scripts belonging to cell. More...
 
void remove (RefData *ref)
 
void remove (const Ptr &ptr)
 Remove script for given reference (ignored if reference does not have a script listed). More...
 

Private Attributes

std::list< std::pair
< std::string, Ptr > > 
mScripts
 
std::list< std::pair
< std::string, Ptr >
>::iterator 
mIter
 
const MWWorld::ESMStoremStore
 

Detailed Description

List of active local scripts.

Constructor & Destructor Documentation

MWWorld::LocalScripts::LocalScripts ( const MWWorld::ESMStore store)

Member Function Documentation

void MWWorld::LocalScripts::add ( const std::string &  scriptName,
const Ptr ptr 
)

Add script to collection of active local scripts.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::LocalScripts::addCell ( CellStore cell)

Add all local scripts in a cell.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::LocalScripts::clear ( )

Clear active local scripts collection.

Here is the caller graph for this function:

void MWWorld::LocalScripts::clearCell ( CellStore cell)

Remove all scripts belonging to cell.

Here is the caller graph for this function:

bool MWWorld::LocalScripts::getNext ( std::pair< std::string, Ptr > &  script)

Get next local script

Returns
Did we get a script?

Here is the caller graph for this function:

void MWWorld::LocalScripts::remove ( RefData ref)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::LocalScripts::remove ( const Ptr ptr)

Remove script for given reference (ignored if reference does not have a script listed).

Here is the call graph for this function:

void MWWorld::LocalScripts::startIteration ( )

Set the iterator to the begin of the script list.

Here is the caller graph for this function:

Member Data Documentation

std::list<std::pair<std::string, Ptr> >::iterator MWWorld::LocalScripts::mIter
private
std::list<std::pair<std::string, Ptr> > MWWorld::LocalScripts::mScripts
private
const MWWorld::ESMStore& MWWorld::LocalScripts::mStore
private

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