OpenMW
|
Interface for script manager (implemented in MWScript) More...
#include <scriptmanager.hpp>
Public Member Functions | |
ScriptManager () | |
virtual | ~ScriptManager () |
virtual void | resetGlobalScripts ()=0 |
virtual void | run (const std::string &name, Interpreter::Context &interpreterContext)=0 |
Run the script with the given name (compile first, if not compiled yet) | |
virtual bool | compile (const std::string &name)=0 |
virtual std::pair< int, int > | compileAll ()=0 |
virtual Compiler::Locals & | getLocals (const std::string &name)=0 |
Return locals for script name. | |
virtual MWScript::GlobalScripts & | getGlobalScripts ()=0 |
virtual int | getLocalIndex (const std::string &scriptId, const std::string &variable, char type)=0 |
Private Member Functions | |
ScriptManager (const ScriptManager &) | |
not implemented | |
ScriptManager & | operator= (const ScriptManager &) |
not implemented |
Interface for script manager (implemented in MWScript)
MWBase::ScriptManager::ScriptManager | ( | const ScriptManager & | ) | [private] |
not implemented
MWBase::ScriptManager::ScriptManager | ( | ) | [inline] |
virtual MWBase::ScriptManager::~ScriptManager | ( | ) | [inline, virtual] |
virtual bool MWBase::ScriptManager::compile | ( | const std::string & | name | ) | [pure virtual] |
virtual std::pair<int, int> MWBase::ScriptManager::compileAll | ( | ) | [pure virtual] |
virtual MWScript::GlobalScripts& MWBase::ScriptManager::getGlobalScripts | ( | ) | [pure virtual] |
Implemented in MWScript::ScriptManager.
virtual int MWBase::ScriptManager::getLocalIndex | ( | const std::string & | scriptId, |
const std::string & | variable, | ||
char | type | ||
) | [pure virtual] |
Return index of the variable of the given name and type in the given script. Will throw an exception, if there is no such script or variable or the type does not match.
Implemented in MWScript::ScriptManager.
virtual Compiler::Locals& MWBase::ScriptManager::getLocals | ( | const std::string & | name | ) | [pure virtual] |
Return locals for script name.
Implemented in MWScript::ScriptManager.
ScriptManager& MWBase::ScriptManager::operator= | ( | const ScriptManager & | ) | [private] |
not implemented
virtual void MWBase::ScriptManager::resetGlobalScripts | ( | ) | [pure virtual] |
Implemented in MWScript::ScriptManager.
virtual void MWBase::ScriptManager::run | ( | const std::string & | name, |
Interpreter::Context & | interpreterContext | ||
) | [pure virtual] |
Run the script with the given name (compile first, if not compiled yet)
Implemented in MWScript::ScriptManager.