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

#include <jade.h>

Inheritance diagram for Engines::Jade::JadeEngine:
Inheritance graph
[legend]
Collaboration diagram for Engines::Jade::JadeEngine:
Collaboration graph
[legend]

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...
 
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

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
 

Detailed Description

Definition at line 43 of file jade.h.

Constructor & Destructor Documentation

◆ JadeEngine()

Engines::Jade::JadeEngine::JadeEngine ( )

Definition at line 64 of file jade.cpp.

References Engines::Engine::_console.

◆ ~JadeEngine()

Engines::Jade::JadeEngine::~JadeEngine ( )

Definition at line 68 of file jade.cpp.

Member Function Documentation

◆ changeLanguage()

bool Engines::Jade::JadeEngine::changeLanguage ( )
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().

Here is the call graph for this function:

◆ declareLanguages()

void Engines::Jade::JadeEngine::declareLanguages ( )
private

◆ deinit()

void Engines::Jade::JadeEngine::deinit ( )
private

Definition at line 353 of file jade.cpp.

References _game.

Referenced by run().

Here is the caller graph for this function:

◆ detectLanguages()

bool Engines::Jade::JadeEngine::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 120 of file jade.cpp.

References Engines::Jade::addUniqueLanguageIfValid(), Common::FileList::begin(), Common::FileList::end(), Engines::Jade::findTLKs(), and Engines::Jade::getTLKLanguage().

Here is the call graph for this function:

◆ getGame()

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

Here is the caller graph for this function:

◆ getLanguage()

bool Engines::Jade::JadeEngine::getLanguage ( Aurora::Language language) const
virtual

Return the game's current language.

Reimplemented from Engines::Engine.

Definition at line 136 of file jade.cpp.

References _language.

◆ init()

void Engines::Jade::JadeEngine::init ( )
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().

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

◆ initConfig()

void Engines::Jade::JadeEngine::initConfig ( )
private

Definition at line 345 of file jade.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ initCursors()

void Engines::Jade::JadeEngine::initCursors ( )
private

Definition at line 339 of file jade.cpp.

References CursorMan.

Referenced by init().

Here is the caller graph for this function:

◆ initGameConfig()

void Engines::Jade::JadeEngine::initGameConfig ( )
private

Definition at line 348 of file jade.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::Jade::JadeEngine::initResources ( LoadProgress progress)
private

◆ playIntroVideos()

void Engines::Jade::JadeEngine::playIntroVideos ( )
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().

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

◆ run()

void Engines::Jade::JadeEngine::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().

Here is the call graph for this function:

Member Data Documentation

◆ _game

Common::ScopedPtr<Game> Engines::Jade::JadeEngine::_game
private

Definition at line 66 of file jade.h.

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

◆ _language

Aurora::Language Engines::Jade::JadeEngine::_language
private

Definition at line 64 of file jade.h.

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


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