xoreos
0.0.5
|
#include <dragonage.h>
Public Member Functions | |
DragonAgeEngine () | |
~DragonAgeEngine () | |
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... | |
Static Public Member Functions | |
static Common::UString | getLanguageString (Aurora::Language language) |
Return the string Dragon Age: Origins uses to representing this language. 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 |
ChangeList | _resources |
ChangeList | _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 |
Definition at line 45 of file dragonage.h.
Engines::DragonAge::DragonAgeEngine::DragonAgeEngine | ( | ) |
Definition at line 53 of file dragonage.cpp.
References Engines::Engine::_console.
Engines::DragonAge::DragonAgeEngine::~DragonAgeEngine | ( | ) |
Definition at line 57 of file dragonage.cpp.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 127 of file dragonage.cpp.
References _language, and Engines::Engine::evaluateLanguage().
|
private |
Definition at line 192 of file dragonage.cpp.
References ARRAYSIZE, Common::kEncodingCP1250, Common::kEncodingCP1251, Common::kEncodingCP1252, Common::kEncodingCP932, Common::kEncodingCP949, Common::kEncodingUTF16LE, Aurora::kLanguageCzech, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageHungarian, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, Aurora::kLanguageKorean, Aurora::kLanguagePolish, Aurora::kLanguageRussian, Aurora::kLanguageSpanish, and LangMan.
Referenced by init().
|
private |
Definition at line 328 of file dragonage.cpp.
References _game, _languageTLK, _resources, Engines::deindexResources(), and Engines::DragonAge::Game::unloadTalkTables().
Referenced by run().
|
virtual |
Detect which languages this game instance supports.
Reimplemented from Engines::Engine.
Definition at line 91 of file dragonage.cpp.
References Common::FileList::addDirectory(), Common::FileList::contains(), Common::UString::empty(), Common::FilePath::findSubDirectory(), getLanguageString(), and Aurora::kLanguageMAX.
Game & Engines::DragonAge::DragonAgeEngine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 135 of file dragonage.cpp.
References _game.
Referenced by Engines::DragonAge::Console::cmdListAreas(), Engines::DragonAge::Console::cmdListCampaigns(), Engines::DragonAge::Console::cmdLoadArea(), Engines::DragonAge::Console::cmdLoadCampaign(), Engines::DragonAge::Console::updateAreas(), and Engines::DragonAge::Console::updateCampaigns().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 122 of file dragonage.cpp.
References _language.
Referenced by Engines::DragonAge::Game::loadTalkTables().
|
static |
Return the string Dragon Age: Origins uses to representing this language.
Definition at line 60 of file dragonage.cpp.
References Aurora::kLanguageCzech, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageHungarian, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, Aurora::kLanguageKorean, Aurora::kLanguagePolish, Aurora::kLanguageRussian, and Aurora::kLanguageSpanish.
Referenced by detectLanguages(), Engines::DragonAge::Game::loadTalkTable(), and Engines::DragonAge::Game::loadTalkTables().
|
private |
Definition at line 161 of file dragonage.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 322 of file dragonage.cpp.
Referenced by init().
|
private |
Definition at line 247 of file dragonage.cpp.
References CursorMan.
Referenced by init().
|
private |
Definition at line 325 of file dragonage.cpp.
Referenced by init().
|
private |
Definition at line 210 of file dragonage.cpp.
References _language, _languageTLK, _resources, Engines::Engine::_target, Engines::indexMandatoryArchive(), Common::kHashFNV64, Engines::DragonAge::Game::loadResources(), Engines::DragonAge::Game::loadTalkTables(), Engines::registerModelLoader(), ResMan, and Engines::LoadProgress::step().
Referenced by init().
|
private |
Definition at line 335 of file dragonage.cpp.
References Engines::playVideo().
Referenced by run().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 141 of file dragonage.cpp.
References Engines::Engine::_console, _game, CursorMan, deinit(), EventMan, init(), and playIntroVideos().
|
private |
Definition at line 73 of file dragonage.h.
|
private |
Definition at line 68 of file dragonage.h.
Referenced by changeLanguage(), getLanguage(), init(), and initResources().
|
private |
Definition at line 71 of file dragonage.h.
Referenced by deinit(), and initResources().
|
private |
Definition at line 70 of file dragonage.h.
Referenced by deinit(), and initResources().