OpenMW
Public Member Functions | Private Attributes
MWWorld::LocalScripts Class Reference

List of active local scripts. More...

#include <localscripts.hpp>

List of all members.

Public Member Functions

 LocalScripts (const MWWorld::ESMStore &store)
void setIgnore (const Ptr &ptr)
void startIteration ()
 Set the iterator to the begin of the script list.
bool isFinished () const
 Is iteration finished?
std::pair< std::string, PtrgetNext ()
 Get next local script (must not be called if isFinished())
void add (const std::string &scriptName, const Ptr &ptr)
 Add script to collection of active local scripts.
void addCell (CellStore *cell)
 Add all local scripts in a cell.
void clear ()
 Clear active local scripts collection.
void clearCell (CellStore *cell)
 Remove all scripts belonging to cell.
void remove (RefData *ref)
void remove (const Ptr &ptr)
 Remove script for given reference (ignored if reference does not have a scirpt listed).

Private Attributes

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

Detailed Description

List of active local scripts.


Constructor & Destructor Documentation


Member Function Documentation

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

Add script to collection of active local scripts.

Add all local scripts in a cell.

Clear active local scripts collection.

Remove all scripts belonging to cell.

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

Get next local script (must not be called if isFinished())

Is iteration finished?

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

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

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

Mark a single reference for ignoring during iteration over local scripts (will revoke previous ignores).

Set the iterator to the begin of the script list.


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]

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