xoreos
0.0.5
|
#include <witcher.h>
Public Member Functions | |
WitcherEngine () | |
~WitcherEngine () | |
bool | detectLanguages (Aurora::GameID game, const Common::UString &target, Aurora::Platform platform, std::vector< Aurora::Language > &languagesText, std::vector< Aurora::Language > &languagesVoice) const |
Detect which languages this game instance supports. More... | |
bool | getLanguage (Aurora::Language &languageText, Aurora::Language &languageVoice) const |
Return the game's current language. More... | |
bool | changeLanguage () |
Change the game's current language. More... | |
Game & | getGame () |
Return the context running the actual game. More... | |
Public Member Functions inherited from Engines::Engine | |
Engine () | |
virtual | ~Engine () |
virtual bool | detectLanguages (Aurora::GameID game, const Common::UString &target, Aurora::Platform platform, std::vector< Aurora::Language > &languages) const |
Detect which languages this game instance supports. More... | |
bool | detectLanguages (std::vector< Aurora::Language > &languages) const |
bool | detectLanguages (std::vector< Aurora::Language > &languagesText, std::vector< Aurora::Language > &languagesVoice) const |
virtual bool | getLanguage (Aurora::Language &language) const |
Return the game's current language. More... | |
void | start (Aurora::GameID game, const Common::UString &target, Aurora::Platform platform) |
void | showFPS () |
Evaluate the FPS display setting and show/hide the FPS display. More... | |
Protected Member Functions | |
void | run () |
Run the game. More... | |
Protected Member Functions inherited from Engines::Engine | |
bool | evaluateLanguage (bool find, Aurora::Language &language) const |
bool | evaluateLanguage (bool find, Aurora::Language &languageVoice, Aurora::Language &languageText) const |
Private Member Functions | |
void | init () |
void | declareLanguages () |
void | initResources (LoadProgress &progress) |
void | initCursors () |
void | initConfig () |
void | initGameConfig () |
void | initLua () |
void | unloadLanguageFiles () |
void | loadLanguageFiles (LoadProgress &progress, Aurora::Language langText, Aurora::Language langVoice) |
void | loadLanguageFiles (Aurora::Language langText, Aurora::Language langVoice) |
void | deinit () |
void | playIntroVideos () |
Private Attributes | |
Aurora::Language | _languageText |
Aurora::Language | _languageVoice |
std::list< Common::ChangeID > | _languageResources |
Common::ChangeID | _languageTLK |
Common::ScopedPtr< Game > | _game |
Additional Inherited Members | |
Protected Attributes inherited from Engines::Engine | |
Aurora::GameID | _game |
Aurora::Platform | _platform |
Common::UString | _target |
Common::ScopedPtr< Console > | _console |
Common::ScopedPtr< Graphics::Aurora::FPS > | _fps |
Engines::Witcher::WitcherEngine::WitcherEngine | ( | ) |
Definition at line 57 of file witcher.cpp.
References Engines::Engine::_console.
Engines::Witcher::WitcherEngine::~WitcherEngine | ( | ) |
Definition at line 63 of file witcher.cpp.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 104 of file witcher.cpp.
References _game, _languageText, _languageVoice, Engines::Engine::evaluateLanguage(), and loadLanguageFiles().
|
private |
Definition at line 193 of file witcher.cpp.
References ARRAYSIZE, Common::kEncodingUTF8, Aurora::kLanguageChineseSimplified, Aurora::kLanguageChineseTraditional, Aurora::kLanguageCzech, Aurora::kLanguageDebug, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageHungarian, Aurora::kLanguageItalian, Aurora::kLanguageKorean, Aurora::kLanguagePolish, Aurora::kLanguageRussian, Aurora::kLanguageSpanish, and LangMan.
Referenced by init().
|
private |
Definition at line 322 of file witcher.cpp.
References _game, Common::Singleton< ScriptManager >::destroy(), and LuaScriptMan.
Referenced by run().
|
virtual |
Detect which languages this game instance supports.
Reimplemented from Engines::Engine.
Definition at line 66 of file witcher.cpp.
References Common::FileList::addDirectory(), Common::FileList::contains(), Common::UString::empty(), Common::FilePath::findSubDirectory(), Common::UString::format(), Aurora::kLanguageMAX, and LangMan.
Game & Engines::Witcher::WitcherEngine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 133 of file witcher.cpp.
References _game.
Referenced by Engines::Witcher::Console::cmdGotoArea(), Engines::Witcher::Console::cmdListAreas(), Engines::Witcher::Console::cmdLoadCampaign(), Engines::Witcher::Console::cmdLoadModule(), Engines::Witcher::Console::cmdMove(), Engines::Witcher::Console::cmdPlayMusic(), Engines::Witcher::Console::cmdStopMusic(), and Engines::Witcher::Console::updateAreas().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 97 of file witcher.cpp.
References _languageText, and _languageVoice.
|
private |
Definition at line 159 of file witcher.cpp.
References _languageText, _languageVoice, declareLanguages(), Engines::Engine::evaluateLanguage(), EventMan, initConfig(), initCursors(), initGameConfig(), initLua(), initResources(), LangMan, status(), and Engines::LoadProgress::step().
Referenced by run().
|
private |
Definition at line 267 of file witcher.cpp.
Referenced by init().
|
private |
Definition at line 260 of file witcher.cpp.
References CursorMan.
Referenced by init().
|
private |
Definition at line 270 of file witcher.cpp.
References Engines::Engine::_target, ConfigMan, Common::FilePath::findSubDirectory(), and Common::kConfigRealmGameTemp.
Referenced by init().
|
private |
Definition at line 275 of file witcher.cpp.
References LuaScriptMan.
Referenced by init().
|
private |
Definition at line 213 of file witcher.cpp.
References _languageText, _languageVoice, Engines::Engine::_target, FontMan, Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalDirectory(), Graphics::Aurora::kFontFormatTTF, loadLanguageFiles(), Engines::registerModelLoader(), ResMan, and Engines::LoadProgress::step().
Referenced by init().
|
private |
Definition at line 289 of file witcher.cpp.
References Common::UString::format(), LangMan, and Engines::LoadProgress::step().
Referenced by changeLanguage(), and initResources().
|
private |
Definition at line 298 of file witcher.cpp.
References _languageResources, _languageTLK, Common::UString::format(), Engines::indexMandatoryArchive(), Engines::indexOptionalArchive(), LangMan, TalkMan, and unloadLanguageFiles().
|
private |
Definition at line 329 of file witcher.cpp.
References Engines::playVideo().
Referenced by run().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 139 of file witcher.cpp.
References Engines::Engine::_console, _game, CursorMan, deinit(), EventMan, init(), and playIntroVideos().
|
private |
Definition at line 279 of file witcher.cpp.
References _languageResources, _languageTLK, Engines::deindexResources(), and TalkMan.
Referenced by loadLanguageFiles().
|
private |
|
private |
Definition at line 71 of file witcher.h.
Referenced by loadLanguageFiles(), and unloadLanguageFiles().
|
private |
Definition at line 68 of file witcher.h.
Referenced by changeLanguage(), getLanguage(), init(), and initResources().
|
private |
Definition at line 72 of file witcher.h.
Referenced by loadLanguageFiles(), and unloadLanguageFiles().
|
private |
Definition at line 69 of file witcher.h.
Referenced by changeLanguage(), getLanguage(), init(), and initResources().