xoreos
0.0.5
|
#include <kotor.h>
Public Member Functions | |
KotOREngine () | |
~KotOREngine () | |
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 | |
bool | hasYavin4Module () const |
void | init () |
void | detectVersion () |
void | initConfig () |
void | declareLanguages () |
void | initResources (LoadProgress &progress) |
void | initCursorsRemap () |
void | initCursors () |
void | initGameConfig () |
void | deinit () |
void | checkConfig () |
void | playIntroVideos () |
Private Attributes | |
Common::ScopedPtr< Version > | _version |
Aurora::Language | _language |
bool | _hasLiveKey |
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::KotOR::KotOREngine::KotOREngine | ( | ) |
Definition at line 58 of file kotor.cpp.
References Engines::Engine::_console.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 99 of file kotor.cpp.
References _language, and Engines::Engine::evaluateLanguage().
|
private |
Definition at line 509 of file kotor.cpp.
References Engines::checkConfigInt().
Referenced by init().
|
private |
Definition at line 195 of file kotor.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 66 of file kotor.cpp.
References Common::FileList::addDirectory(), Common::UString::empty(), Common::FileList::findFirst(), Aurora::TalkTable_TLK::getLanguageID(), Aurora::kLanguageInvalid, and LangMan.
|
private |
Definition at line 175 of file kotor.cpp.
References Engines::Engine::_platform, Engines::Engine::_target, _version, status(), and warning().
Referenced by init().
Game & Engines::KotOR::KotOREngine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 107 of file kotor.cpp.
References _game.
Referenced by Engines::KotOR::Console::cmdAddItem(), Engines::KotOR::Console::cmdExitModule(), Engines::KotOR::Console::cmdFlyCam(), Engines::KotOR::Console::cmdGetPCRoom(), Engines::KotOR::Console::cmdListRoomsVisibleFrom(), Engines::KotOR::Console::cmdLoadModule(), Engines::KotOR::Console::cmdPlayAnim(), Engines::KotOR::Console::cmdPlayMusic(), Engines::KotOR::Console::cmdShowTriggers(), Engines::KotOR::Console::cmdShowWalkmesh(), and Engines::KotOR::Console::cmdStopMusic().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 94 of file kotor.cpp.
References _language.
|
private |
Definition at line 556 of file kotor.cpp.
References _hasLiveKey, Engines::Engine::_platform, and Aurora::kPlatformXbox.
|
private |
Definition at line 133 of file kotor.cpp.
References _language, checkConfig(), declareLanguages(), detectVersion(), Engines::Engine::evaluateLanguage(), EventMan, GfxMan, initConfig(), initCursors(), initGameConfig(), initResources(), LangMan, status(), Engines::LoadProgress::step(), and warning().
Referenced by run().
|
private |
Definition at line 450 of file kotor.cpp.
References ConfigMan, and Common::kConfigRealmDefault.
Referenced by init().
|
private |
Definition at line 411 of file kotor.cpp.
References Engines::Engine::_platform, CursorMan, and Aurora::kPlatformXbox.
Referenced by init().
|
private |
Definition at line 312 of file kotor.cpp.
References ResMan.
Referenced by initResources().
|
private |
Definition at line 504 of file kotor.cpp.
References Engines::Engine::_target, ConfigMan, Common::FilePath::findSubDirectory(), and Common::kConfigRealmGameTemp.
Referenced by init().
|
private |
Definition at line 212 of file kotor.cpp.
References _hasLiveKey, Engines::Engine::_platform, Engines::Engine::_target, EventMan, FontMan, Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalArchive(), Engines::indexOptionalDirectory(), initCursorsRemap(), Aurora::kFileTypeTPC, Aurora::kFileTypeTXB, Graphics::Aurora::kFontFormatTexture, Aurora::kPlatformMacOSX, Aurora::kPlatformWindows, Aurora::kPlatformXbox, Aurora::kResourceImage, Engines::registerModelLoader(), ResMan, Engines::LoadProgress::step(), and TalkMan.
Referenced by init().
|
private |
Definition at line 526 of file kotor.cpp.
References Engines::Engine::_platform, Aurora::kPlatformAndroid, Aurora::kPlatformIOS, Aurora::kPlatformMacOSX, Aurora::kPlatformWindows, Aurora::kPlatformXbox, and Engines::playVideo().
Referenced by run().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 113 of file kotor.cpp.
References Engines::Engine::_console, _game, _version, CursorMan, deinit(), EventMan, init(), and playIntroVideos().
|
private |
|
private |
Definition at line 68 of file kotor.h.
Referenced by hasYavin4Module(), and initResources().
|
private |
Definition at line 66 of file kotor.h.
Referenced by changeLanguage(), getLanguage(), and init().
|
private |
Definition at line 64 of file kotor.h.
Referenced by deinit(), detectVersion(), and run().