|
OpenMW
|
Main engine class, that brings together all the components of OpenMW. More...
#include <engine.hpp>
Public Member Functions | |
| Engine (Files::ConfigurationManager &configurationManager) | |
| virtual | ~Engine () |
| void | enableFSStrict (bool fsStrict) |
| void | setDataDirs (const Files::PathContainer &dataDirs) |
| Set data dirs. More... | |
| void | addArchive (const std::string &archive) |
| Add BSA archive. More... | |
| void | setResourceDir (const boost::filesystem::path &parResDir) |
| Set resource dir. More... | |
| void | setCell (const std::string &cellName) |
| Set start cell name (only interiors for now) More... | |
| void | addContentFile (const std::string &file) |
| addContentFile - Adds content file (ie. esm/esp, or omwgame/omwaddon) to the content files container. More... | |
| void | setScriptsVerbosity (bool scriptsVerbosity) |
| Enable or disable verbose script output. More... | |
| void | setSoundUsage (bool soundUsage) |
| Disable or enable all sounds. More... | |
| void | setSkipMenu (bool skipMenu, bool newGame) |
| void | setGrabMouse (bool grab) |
| void | go () |
| Initialise and enter main loop. More... | |
| void | setCompileAll (bool all) |
| Compile all scripts (excludign dialogue scripts) at startup? More... | |
| void | setCompileAllDialogue (bool all) |
| Compile all dialogue scripts at startup? More... | |
| void | setEncoding (const ToUTF8::FromType &encoding) |
| Font encoding. More... | |
| void | setFallbackValues (std::map< std::string, std::string > map) |
| void | setScriptConsoleMode (bool enabled) |
| Enable console-only script functionality. More... | |
| void | setStartupScript (const std::string &path) |
| Set path for a script that is run on startup in the console. More... | |
| void | setActivationDistanceOverride (int distance) |
| Override the game setting specified activation distance. More... | |
| void | setWarningsMode (int mode) |
| void | setScriptBlacklist (const std::vector< std::string > &list) |
| void | setScriptBlacklistUse (bool use) |
| void | enableFontExport (bool exportFonts) |
| void | setSaveGameFile (const std::string &savegame) |
| Set the save game file to load after initialising the engine. More... | |
Private Member Functions | |
| Engine (const Engine &) | |
| Engine & | operator= (const Engine &) |
| void | executeLocalScripts () |
| void | frame (float dt) |
| std::string | loadSettings (Settings::Manager &settings) |
| Load settings from various files, returns the path to the user settings file. More... | |
| void | prepareEngine (Settings::Manager &settings) |
| Prepare engine for game play. More... | |
| void | createWindow (Settings::Manager &settings) |
| void | setWindowIcon () |
Main engine class, that brings together all the components of OpenMW.
|
private |
| OMW::Engine::Engine | ( | Files::ConfigurationManager & | configurationManager | ) |
|
virtual |
| void OMW::Engine::addArchive | ( | const std::string & | archive | ) |
Add BSA archive.
| void OMW::Engine::addContentFile | ( | const std::string & | file | ) |
addContentFile - Adds content file (ie. esm/esp, or omwgame/omwaddon) to the content files container.
| file | - filename (extension is required) |
|
private |
| void OMW::Engine::enableFontExport | ( | bool | exportFonts | ) |
| void OMW::Engine::enableFSStrict | ( | bool | fsStrict | ) |
Enable strict filesystem mode (do not fold case)
|
private |
|
private |
| void OMW::Engine::go | ( | ) |
Initialise and enter main loop.
|
private |
Load settings from various files, returns the path to the user settings file.
|
private |
Prepare engine for game play.
| void OMW::Engine::setActivationDistanceOverride | ( | int | distance | ) |
Override the game setting specified activation distance.
| void OMW::Engine::setCell | ( | const std::string & | cellName | ) |
Set start cell name (only interiors for now)
| void OMW::Engine::setCompileAll | ( | bool | all | ) |
Compile all scripts (excludign dialogue scripts) at startup?
| void OMW::Engine::setCompileAllDialogue | ( | bool | all | ) |
Compile all dialogue scripts at startup?
| void OMW::Engine::setDataDirs | ( | const Files::PathContainer & | dataDirs | ) |
Set data dirs.
| void OMW::Engine::setEncoding | ( | const ToUTF8::FromType & | encoding | ) |
Font encoding.
| void OMW::Engine::setFallbackValues | ( | std::map< std::string, std::string > | map | ) |
|
inline |
| void OMW::Engine::setResourceDir | ( | const boost::filesystem::path & | parResDir | ) |
Set resource dir.
| void OMW::Engine::setSaveGameFile | ( | const std::string & | savegame | ) |
Set the save game file to load after initialising the engine.
| void OMW::Engine::setScriptBlacklist | ( | const std::vector< std::string > & | list | ) |
| void OMW::Engine::setScriptBlacklistUse | ( | bool | use | ) |
| void OMW::Engine::setScriptConsoleMode | ( | bool | enabled | ) |
Enable console-only script functionality.
| void OMW::Engine::setScriptsVerbosity | ( | bool | scriptsVerbosity | ) |
Enable or disable verbose script output.
Skip main menu and go directly into the game
| newGame | Start a new game instead off dumping the player into the game (ignored if !skipMenu). |
| void OMW::Engine::setSoundUsage | ( | bool | soundUsage | ) |
Disable or enable all sounds.
| void OMW::Engine::setStartupScript | ( | const std::string & | path | ) |
Set path for a script that is run on startup in the console.
| void OMW::Engine::setWarningsMode | ( | int | mode | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6