Public Member Functions | |
| ScriptManager () | |
| Constructor. | |
| ~ScriptManager () | |
| Deconstructor. | |
| void | init () |
| Initialises the ScriptManager. | |
| void | clear () |
| Clears the ScriptManager. | |
| void | refAdd () |
| Increases the reference counter. | |
| void | refRelease () |
| Decreases the reference counter. | |
| asIScriptEngine * | getEngine () const |
| Returns a direct pointer to the AngelScript engine. | |
| bool | addScript (Script *script) |
| Adds the given Script to the ScriptManager. | |
| bool | addScriptSection (const std::string &name, const std::string §ion) |
| Adds a script section to the ScriptManager. These script sections are added to all scripts. | |
| Script * | createScript (const std::string &name) |
| Creates (and adds) an script with the given name. | |
| Script * | createScriptFromFile (const std::string &fileName) |
| Creates an script with the given name, loaded from the given file. | |
| Script * | getScript (const u32 id) |
| Gets the Script with the given ID. | |
| Script * | getScript (const std::string &name) |
| Gets the Script with the given name. | |
| void | removeAllScripts () |
| Removes all scripts from the ScriptManager. | |
| void | removeAllScriptSections () |
| Removes all script sections from the ScriptManager. | |
| bool | removeScript (Script *script) |
| Removes the given Script. | |
| bool | removeScript (const u32 id) |
| Removes the given Script with the given ID. | |
| bool | removeScript (const std::string &name) |
| Removes the given Script with the given name. | |
| bool | removeScriptSection (const std::string &name) |
| Removes the script section with the given name. | |
Friends | |
| class | Script |
Definition at line 32 of file ScriptManager.h.
| ScriptManager::ScriptManager | ( | ) |
| ScriptManager::~ScriptManager | ( | ) |
| bool ScriptManager::addScript | ( | Script * | script | ) |
Adds the given Script to the ScriptManager.
| script | Pointer to the Script to add. |
Definition at line 103 of file ScriptManager.cpp.
| bool ScriptManager::addScriptSection | ( | const std::string & | name, | |
| const std::string & | section | |||
| ) |
Adds a script section to the ScriptManager. These script sections are added to all scripts.
| name | Name of the script section. | |
| section | Contents of the section. |
Definition at line 120 of file ScriptManager.cpp.
| void ScriptManager::clear | ( | ) |
| Script * ScriptManager::createScript | ( | const std::string & | name | ) |
Creates (and adds) an script with the given name.
| name | Name of the script. |
Definition at line 148 of file ScriptManager.cpp.
| Script * ScriptManager::createScriptFromFile | ( | const std::string & | fileName | ) |
Creates an script with the given name, loaded from the given file.
| fileName | Filename of the file to load. |
Definition at line 161 of file ScriptManager.cpp.
| asIScriptEngine * ScriptManager::getEngine | ( | ) | const |
Returns a direct pointer to the AngelScript engine.
Definition at line 97 of file ScriptManager.cpp.
| Script * ScriptManager::getScript | ( | const std::string & | name | ) |
Gets the Script with the given name.
Definition at line 194 of file ScriptManager.cpp.
| Script * ScriptManager::getScript | ( | const u32 | id | ) |
Gets the Script with the given ID.
Definition at line 182 of file ScriptManager.cpp.
| void ScriptManager::init | ( | ) |
| void ScriptManager::refAdd | ( | ) |
Increases the reference counter.
Definition at line 85 of file ScriptManager.cpp.
| void ScriptManager::refRelease | ( | ) |
Decreases the reference counter.
Definition at line 91 of file ScriptManager.cpp.
| void ScriptManager::removeAllScripts | ( | ) |
| void ScriptManager::removeAllScriptSections | ( | ) |
Removes all script sections from the ScriptManager.
Definition at line 215 of file ScriptManager.cpp.
| bool ScriptManager::removeScript | ( | const std::string & | name | ) |
Removes the given Script with the given name.
| name | Name of the Script to remove. |
Definition at line 269 of file ScriptManager.cpp.
| bool ScriptManager::removeScript | ( | const u32 | id | ) |
Removes the given Script with the given ID.
| id | ID of the Script to remove. |
Definition at line 247 of file ScriptManager.cpp.
| bool ScriptManager::removeScript | ( | Script * | script | ) |
Removes the given Script.
| script | Pointer to the Script to remove. |
Definition at line 221 of file ScriptManager.cpp.
| bool ScriptManager::removeScriptSection | ( | const std::string & | name | ) |
Removes the script section with the given name.
| name | Name of the script section to remove. |
Definition at line 291 of file ScriptManager.cpp.
friend class Script [friend] |
Definition at line 34 of file ScriptManager.h.
1.5.8