xoreos
0.0.5
|
#include <nwn2.h>
Public Member Functions | |
NWN2Engine () | |
~NWN2Engine () | |
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 | getLanguage (Aurora::Language &language) 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 > &languagesText, std::vector< Aurora::Language > &languagesVoice) 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 &languageText, Aurora::Language &languageVoice) 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 | deinit () |
void | playIntroVideos () |
Private Attributes | |
Aurora::Language | _language |
bool | _hasXP1 |
bool | _hasXP2 |
bool | _hasXP3 |
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::NWN2::NWN2Engine::NWN2Engine | ( | ) |
Definition at line 59 of file nwn2.cpp.
References Engines::Engine::_console.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 101 of file nwn2.cpp.
References _language, and Engines::Engine::evaluateLanguage().
|
private |
Definition at line 166 of file nwn2.cpp.
References ARRAYSIZE, Common::kEncodingCP1250, Common::kEncodingCP1252, Common::kEncodingCP932, Common::kEncodingCP936, Common::kEncodingCP949, Common::kEncodingCP950, Aurora::kLanguageChineseSimplified, Aurora::kLanguageChineseTraditional, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, Aurora::kLanguageKorean, Aurora::kLanguagePolish, Aurora::kLanguageSpanish, and LangMan.
Referenced by init().
|
private |
|
virtual |
Detect which languages this game instance supports.
Reimplemented from Engines::Engine.
Definition at line 68 of file nwn2.cpp.
References Common::FileList::addDirectory(), Common::UString::empty(), Common::FileList::findFirst(), Aurora::TalkTable_TLK::getLanguageID(), Aurora::kLanguageInvalid, and LangMan.
Game & Engines::NWN2::NWN2Engine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 109 of file nwn2.cpp.
References _game.
Referenced by Engines::NWN2::Console::cmdGotoArea(), Engines::NWN2::Console::cmdListAreas(), Engines::NWN2::Console::cmdLoadCampaign(), Engines::NWN2::Console::cmdLoadModule(), Engines::NWN2::Console::cmdMove(), Engines::NWN2::Console::cmdPlayMusic(), Engines::NWN2::Console::cmdStopMusic(), and Engines::NWN2::Console::updateAreas().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 96 of file nwn2.cpp.
References _language.
|
private |
Definition at line 135 of file nwn2.cpp.
References _language, declareLanguages(), Engines::Engine::evaluateLanguage(), EventMan, initConfig(), initCursors(), initGameConfig(), initResources(), LangMan, status(), Engines::LoadProgress::step(), and warning().
Referenced by run().
|
private |
Definition at line 358 of file nwn2.cpp.
References ConfigMan, and Common::kConfigRealmDefault.
Referenced by init().
|
private |
|
private |
Definition at line 363 of file nwn2.cpp.
References _hasXP1, _hasXP2, _hasXP3, Engines::Engine::_target, ConfigMan, Common::FilePath::findSubDirectory(), and Common::kConfigRealmGameTemp.
Referenced by init().
|
private |
Definition at line 183 of file nwn2.cpp.
References _hasXP1, _hasXP2, _hasXP3, Engines::Engine::_target, FontMan, Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalArchive(), Engines::indexOptionalDirectory(), Aurora::kFileTypeBBX, Aurora::kFileTypeBFX, Aurora::kFileTypeCAM, Aurora::kFileTypeIFX, Aurora::kFileTypeLFX, Aurora::kFileTypeLTX, Aurora::kFileTypeOSC, Aurora::kFileTypePFB, Aurora::kFileTypePFX, Aurora::kFileTypePTX, Aurora::kFileTypeROS, Aurora::kFileTypeRST, Aurora::kFileTypeSCC, Aurora::kFileTypeSEF, Aurora::kFileTypeTFX, Aurora::kFileTypeTRN, Aurora::kFileTypeTRX, Aurora::kFileTypeUEN, Aurora::kFileTypeULT, Aurora::kFileTypeUPE, Aurora::kFileTypeUSC, Aurora::kFileTypeUTR, Aurora::kFileTypeWLK, Aurora::kFileTypeWMP, Aurora::kFileTypeXML, Aurora::kFileTypeZIP, Graphics::Aurora::kFontFormatTTF, Engines::registerModelLoader(), ResMan, Engines::LoadProgress::step(), and TalkMan.
Referenced by init().
|
private |
Definition at line 382 of file nwn2.cpp.
References Engines::playVideo().
Referenced by run().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 115 of file nwn2.cpp.
References Engines::Engine::_console, _game, CursorMan, deinit(), EventMan, init(), and playIntroVideos().
|
private |
|
private |
Definition at line 66 of file nwn2.h.
Referenced by initGameConfig(), and initResources().
|
private |
Definition at line 67 of file nwn2.h.
Referenced by initGameConfig(), and initResources().
|
private |
Definition at line 68 of file nwn2.h.
Referenced by initGameConfig(), and initResources().
|
private |
Definition at line 64 of file nwn2.h.
Referenced by changeLanguage(), getLanguage(), and init().