xoreos
0.0.5
|
#include <sonic.h>
Public Member Functions | |
SonicEngine () | |
~SonicEngine () | |
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 | declareResources () |
void | initResources (LoadProgress &progress) |
void | initConfig () |
void | initGameConfig () |
void | unloadLanguageFiles () |
void | loadLanguageFiles (LoadProgress &progress, Aurora::Language language) |
void | loadLanguageFiles (Aurora::Language language) |
void | deinit () |
Static Private Member Functions | |
static Common::UString | getLanguageHERF (Aurora::Language language) |
static Common::UString | getLanguageTLK (Aurora::Language language) |
Private Attributes | |
Aurora::Language | _language |
Common::ChangeID | _languageHERF |
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::Sonic::SonicEngine::SonicEngine | ( | ) |
Definition at line 62 of file sonic.cpp.
References Engines::Engine::_console.
|
virtual |
Change the game's current language.
Reimplemented from Engines::Engine.
Definition at line 140 of file sonic.cpp.
References _language, Engines::Engine::evaluateLanguage(), and loadLanguageFiles().
|
private |
Definition at line 215 of file sonic.cpp.
References ARRAYSIZE, Common::kEncodingCP1252, Common::kEncodingUTF8, Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageInvalid, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, Aurora::kLanguageSpanish, and LangMan.
Referenced by init().
|
private |
Definition at line 249 of file sonic.cpp.
References ARRAYSIZE, Engines::Sonic::kFiles, and ResMan.
Referenced by initResources().
|
private |
Definition at line 286 of file sonic.cpp.
References _game, and unloadLanguageFiles().
Referenced by run().
|
virtual |
Detect which languages this game instance supports.
Reimplemented from Engines::Engine.
Definition at line 111 of file sonic.cpp.
References Common::UString::empty(), getLanguageHERF(), getLanguageTLK(), Aurora::NDSFile::hasResource(), and Aurora::kLanguageMAX.
Game & Engines::Sonic::SonicEngine::getGame | ( | ) |
Return the context running the actual game.
Definition at line 164 of file sonic.cpp.
References _game.
Referenced by Engines::Sonic::Console::cmdGotoArea().
|
virtual |
Return the game's current language.
Reimplemented from Engines::Engine.
Definition at line 135 of file sonic.cpp.
References _language.
Referenced by Engines::Sonic::Game::Game(), and Engines::Sonic::Game::showQuote().
|
staticprivate |
Definition at line 69 of file sonic.cpp.
References Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, and Aurora::kLanguageSpanish.
Referenced by detectLanguages(), and loadLanguageFiles().
|
staticprivate |
Definition at line 90 of file sonic.cpp.
References Aurora::kLanguageEnglish, Aurora::kLanguageFrench, Aurora::kLanguageGerman, Aurora::kLanguageItalian, Aurora::kLanguageJapanese, and Aurora::kLanguageSpanish.
Referenced by detectLanguages(), and loadLanguageFiles().
|
private |
Definition at line 185 of file sonic.cpp.
References _language, declareLanguages(), Engines::Engine::evaluateLanguage(), EventMan, GfxMan, initConfig(), initGameConfig(), initResources(), Graphics::GraphicsManager::kScalingWindowSize, Engines::Sonic::kScreenHeight, Engines::Sonic::kScreenWidth, LangMan, status(), Engines::LoadProgress::step(), warning(), and WindowMan.
Referenced by run().
|
private |
|
private |
|
private |
Definition at line 228 of file sonic.cpp.
References _language, Engines::Engine::_target, declareResources(), FontMan, GfxMan, Engines::indexMandatoryArchive(), Graphics::Aurora::kFontFormatNFTR, Common::kHashDJB2, loadLanguageFiles(), Engines::registerModelLoader(), ResMan, and Engines::LoadProgress::step().
Referenced by init().
|
private |
Definition at line 260 of file sonic.cpp.
References Common::UString::format(), LangMan, and Engines::LoadProgress::step().
Referenced by changeLanguage(), and initResources().
|
private |
Definition at line 267 of file sonic.cpp.
References _languageHERF, _languageTLK, getLanguageHERF(), getLanguageTLK(), Engines::indexMandatoryArchive(), LangMan, TalkMan, and unloadLanguageFiles().
|
protectedvirtual |
Run the game.
Implements Engines::Engine.
Definition at line 170 of file sonic.cpp.
References Engines::Engine::_console, _game, CursorMan, deinit(), EventMan, and init().
|
private |
Definition at line 254 of file sonic.cpp.
References _languageHERF, _languageTLK, Engines::deindexResources(), and TalkMan.
Referenced by deinit(), and loadLanguageFiles().
|
private |
|
private |
Definition at line 65 of file sonic.h.
Referenced by changeLanguage(), getLanguage(), init(), and initResources().
|
private |
Definition at line 67 of file sonic.h.
Referenced by loadLanguageFiles(), and unloadLanguageFiles().
|
private |
Definition at line 68 of file sonic.h.
Referenced by loadLanguageFiles(), and unloadLanguageFiles().