xoreos  0.0.5
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::KotOR::KotOREngine Class Reference

#include <kotor.h>

Inheritance diagram for Engines::KotOR::KotOREngine:
Inheritance graph
[legend]
Collaboration diagram for Engines::KotOR::KotOREngine:
Collaboration graph
[legend]

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...
 
GamegetGame ()
 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
 

Detailed Description

Definition at line 43 of file kotor.h.

Constructor & Destructor Documentation

◆ KotOREngine()

Engines::KotOR::KotOREngine::KotOREngine ( )

Definition at line 58 of file kotor.cpp.

References Engines::Engine::_console.

◆ ~KotOREngine()

Engines::KotOR::KotOREngine::~KotOREngine ( )

Definition at line 63 of file kotor.cpp.

Member Function Documentation

◆ changeLanguage()

bool Engines::KotOR::KotOREngine::changeLanguage ( )
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().

Here is the call graph for this function:

◆ checkConfig()

void Engines::KotOR::KotOREngine::checkConfig ( )
private

Definition at line 509 of file kotor.cpp.

References Engines::checkConfigInt().

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ declareLanguages()

void Engines::KotOR::KotOREngine::declareLanguages ( )
private

◆ deinit()

void Engines::KotOR::KotOREngine::deinit ( )
private

Definition at line 519 of file kotor.cpp.

References _game, _version, and Engines::unregisterModelLoader().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ detectLanguages()

bool Engines::KotOR::KotOREngine::detectLanguages ( Aurora::GameID  game,
const Common::UString target,
Aurora::Platform  platform,
std::vector< Aurora::Language > &  languages 
) const
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.

Here is the call graph for this function:

◆ detectVersion()

void Engines::KotOR::KotOREngine::detectVersion ( )
private

Definition at line 175 of file kotor.cpp.

References Engines::Engine::_platform, Engines::Engine::_target, _version, status(), and warning().

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGame()

Game & Engines::KotOR::KotOREngine::getGame ( )

◆ getLanguage()

bool Engines::KotOR::KotOREngine::getLanguage ( Aurora::Language language) const
virtual

Return the game's current language.

Reimplemented from Engines::Engine.

Definition at line 94 of file kotor.cpp.

References _language.

◆ hasYavin4Module()

bool Engines::KotOR::KotOREngine::hasYavin4Module ( ) const
private

Definition at line 556 of file kotor.cpp.

References _hasLiveKey, Engines::Engine::_platform, and Aurora::kPlatformXbox.

◆ init()

void Engines::KotOR::KotOREngine::init ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initConfig()

void Engines::KotOR::KotOREngine::initConfig ( )
private

Definition at line 450 of file kotor.cpp.

References ConfigMan, and Common::kConfigRealmDefault.

Referenced by init().

Here is the caller graph for this function:

◆ initCursors()

void Engines::KotOR::KotOREngine::initCursors ( )
private

Definition at line 411 of file kotor.cpp.

References Engines::Engine::_platform, CursorMan, and Aurora::kPlatformXbox.

Referenced by init().

Here is the caller graph for this function:

◆ initCursorsRemap()

void Engines::KotOR::KotOREngine::initCursorsRemap ( )
private

Definition at line 312 of file kotor.cpp.

References ResMan.

Referenced by initResources().

Here is the caller graph for this function:

◆ initGameConfig()

void Engines::KotOR::KotOREngine::initGameConfig ( )
private

Definition at line 504 of file kotor.cpp.

References Engines::Engine::_target, ConfigMan, Common::FilePath::findSubDirectory(), and Common::kConfigRealmGameTemp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initResources()

void Engines::KotOR::KotOREngine::initResources ( LoadProgress progress)
private

◆ playIntroVideos()

void Engines::KotOR::KotOREngine::playIntroVideos ( )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void Engines::KotOR::KotOREngine::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().

Here is the call graph for this function:

Member Data Documentation

◆ _game

Common::ScopedPtr<Game> Engines::KotOR::KotOREngine::_game
private

Definition at line 70 of file kotor.h.

Referenced by deinit(), getGame(), and run().

◆ _hasLiveKey

bool Engines::KotOR::KotOREngine::_hasLiveKey
private

Definition at line 68 of file kotor.h.

Referenced by hasYavin4Module(), and initResources().

◆ _language

Aurora::Language Engines::KotOR::KotOREngine::_language
private

Definition at line 66 of file kotor.h.

Referenced by changeLanguage(), getLanguage(), and init().

◆ _version

Common::ScopedPtr<Version> Engines::KotOR::KotOREngine::_version
private

Definition at line 64 of file kotor.h.

Referenced by deinit(), detectVersion(), and run().


The documentation for this class was generated from the following files: