xoreos
0.0.5
|
#include <jade.h>
Public Member Functions | |
JadeEngine () | |
~JadeEngine () | |
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 |
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::Jade::JadeEngine::JadeEngine | ( | ) |
Definition at line 64 of file jade.cpp.
References Engines::Engine::_console.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 141 of file jade.cpp.
References _language, and Engines::Engine::evaluateLanguage().
|
private |
Definition at line 217 of file jade.cpp.
References ARRAYSIZE, Common::kEncodingCP1250, Common::kEncodingCP1251, Common::kEncodingCP1252, Common::kEncodingCP936, Common::kEncodingUTF8, Aurora::kLanguageChineseSimplified, Aurora::kLanguageCzech, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageHungarian, Aurora::kLanguageItalian, Aurora::kLanguagePolish, Aurora::kLanguageRussian, Aurora::kLanguageSpanish, and LangMan.
Referenced by init().
|
private |
|
virtual |
Detect which languages this game instance supports.
Reimplemented from Engines::Engine.
Definition at line 120 of file jade.cpp.
References Engines::Jade::addUniqueLanguageIfValid(), Common::FileList::begin(), Common::FileList::end(), Engines::Jade::findTLKs(), and Engines::Jade::getTLKLanguage().
Game & Engines::Jade::JadeEngine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 149 of file jade.cpp.
References _game.
Referenced by Engines::Jade::Console::cmdExitModule(), and Engines::Jade::Console::cmdLoadModule().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 136 of file jade.cpp.
References _language.
|
private |
Jade Empire is proving to be a difficult beast to figure out what is opaque, and what is truly transparent. For this reason, doing things normally results in many rendering artefacts. Just sort everything by depth and be done with it.
Definition at line 175 of file jade.cpp.
References _language, Engines::Engine::_platform, declareLanguages(), Engines::Engine::evaluateLanguage(), EventMan, GfxMan, initConfig(), initCursors(), initGameConfig(), initResources(), Aurora::kPlatformWindows, Graphics::GraphicsManager::kScalingWindowSize, LangMan, RenderMan, Graphics::Render::RenderManager::SORT_HINT_ALLDEPTH, status(), Engines::LoadProgress::step(), and warning().
Referenced by run().
|
private |
|
private |
|
private |
Definition at line 348 of file jade.cpp.
References Engines::Engine::_target, ConfigMan, Common::FilePath::findSubDirectory(), and Common::kConfigRealmGameTemp.
Referenced by init().
|
private |
Definition at line 254 of file jade.cpp.
References Engines::Engine::_platform, Engines::Engine::_target, Common::UString::empty(), EventMan, Engines::Jade::findAndroidVOLanguageDir(), FontMan, Engines::Jade::getTLKDirectory(), Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalDirectory(), Aurora::kFileTypeBTC, Aurora::kFileTypeBTP, Aurora::kFileTypeBTT, Aurora::kFileTypeCRE, Aurora::kFileTypeGIT, Aurora::kFileTypePLA, Aurora::kFileTypeSAV, Aurora::kFileTypeTRG, Graphics::Aurora::kFontFormatABC, Aurora::kLanguageInvalid, Aurora::kPlatformWindows, Aurora::kPlatformXbox, LangMan, Engines::registerModelLoader(), ResMan, Engines::LoadProgress::step(), TalkMan, and TextureMan.
Referenced by init().
|
private |
Definition at line 357 of file jade.cpp.
References Engines::Engine::_platform, Aurora::kPlatformAndroid, Aurora::kPlatformIOS, Aurora::kPlatformWindows, Aurora::kPlatformXbox, and Engines::playVideo().
Referenced by run().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 155 of file jade.cpp.
References Engines::Engine::_console, _game, Engines::Engine::_platform, CursorMan, deinit(), EventMan, init(), and playIntroVideos().
|
private |
|
private |
Definition at line 64 of file jade.h.
Referenced by changeLanguage(), getLanguage(), and init().