xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::DragonAge2::DragonAge2Engine Class Reference

#include <dragonage2.h>

Inheritance diagram for Engines::DragonAge2::DragonAge2Engine:
Inheritance graph
[legend]
Collaboration diagram for Engines::DragonAge2::DragonAge2Engine:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Member Functions

static Common::UString getLanguageString (Aurora::Language language)
 Return the string Dragon Age II 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
 

Detailed Description

Definition at line 45 of file dragonage2.h.

Constructor & Destructor Documentation

◆ DragonAge2Engine()

Engines::DragonAge2::DragonAge2Engine::DragonAge2Engine ( )

Definition at line 53 of file dragonage2.cpp.

References Engines::Engine::_console.

◆ ~DragonAge2Engine()

Engines::DragonAge2::DragonAge2Engine::~DragonAge2Engine ( )

Definition at line 57 of file dragonage2.cpp.

Member Function Documentation

◆ changeLanguage()

bool Engines::DragonAge2::DragonAge2Engine::changeLanguage ( )
virtual

Change the game's current language.

Reimplemented from Engines::Engine.

Definition at line 127 of file dragonage2.cpp.

References _language, and Engines::Engine::evaluateLanguage().

Here is the call graph for this function:

◆ declareLanguages()

void Engines::DragonAge2::DragonAge2Engine::declareLanguages ( )
private

◆ deinit()

void Engines::DragonAge2::DragonAge2Engine::deinit ( )
private

Definition at line 334 of file dragonage2.cpp.

References _game, _languageTLK, _resources, Engines::deindexResources(), and Engines::DragonAge2::Game::unloadTalkTables().

Referenced by run().

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

◆ detectLanguages()

bool Engines::DragonAge2::DragonAge2Engine::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 91 of file dragonage2.cpp.

References Common::FileList::addDirectory(), Common::FileList::contains(), Common::UString::empty(), Common::FilePath::findSubDirectory(), getLanguageString(), and Aurora::kLanguageMAX.

Here is the call graph for this function:

◆ getGame()

Game & Engines::DragonAge2::DragonAge2Engine::getGame ( )

◆ getLanguage()

bool Engines::DragonAge2::DragonAge2Engine::getLanguage ( Aurora::Language language) const
virtual

Return the game's current language.

Reimplemented from Engines::Engine.

Definition at line 122 of file dragonage2.cpp.

References _language.

Referenced by Engines::DragonAge2::Game::loadResources(), and Engines::DragonAge2::Game::loadTalkTables().

Here is the caller graph for this function:

◆ getLanguageString()

Common::UString Engines::DragonAge2::DragonAge2Engine::getLanguageString ( Aurora::Language  language)
static

◆ init()

void Engines::DragonAge2::DragonAge2Engine::init ( )
private

Definition at line 161 of file dragonage2.cpp.

References _language, declareLanguages(), Engines::Engine::evaluateLanguage(), EventMan, 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::DragonAge2::DragonAge2Engine::initConfig ( )
private

Definition at line 328 of file dragonage2.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ initCursors()

void Engines::DragonAge2::DragonAge2Engine::initCursors ( )
private

Definition at line 251 of file dragonage2.cpp.

References CursorMan.

Referenced by init().

Here is the caller graph for this function:

◆ initGameConfig()

void Engines::DragonAge2::DragonAge2Engine::initGameConfig ( )
private

Definition at line 331 of file dragonage2.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ initResources()

void Engines::DragonAge2::DragonAge2Engine::initResources ( LoadProgress progress)
private

◆ playIntroVideos()

void Engines::DragonAge2::DragonAge2Engine::playIntroVideos ( )
private

Definition at line 341 of file dragonage2.cpp.

References Engines::playVideo().

Referenced by run().

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

◆ run()

void Engines::DragonAge2::DragonAge2Engine::run ( )
protectedvirtual

Run the game.

Implements Engines::Engine.

Definition at line 141 of file dragonage2.cpp.

References Engines::Engine::_console, _game, CursorMan, deinit(), EventMan, init(), and playIntroVideos().

Here is the call graph for this function:

Member Data Documentation

◆ _game

Common::ScopedPtr<Game> Engines::DragonAge2::DragonAge2Engine::_game
private

Definition at line 73 of file dragonage2.h.

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

◆ _language

Aurora::Language Engines::DragonAge2::DragonAge2Engine::_language
private

Definition at line 68 of file dragonage2.h.

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

◆ _languageTLK

ChangeList Engines::DragonAge2::DragonAge2Engine::_languageTLK
private

Definition at line 71 of file dragonage2.h.

Referenced by deinit(), and initResources().

◆ _resources

ChangeList Engines::DragonAge2::DragonAge2Engine::_resources
private

Definition at line 70 of file dragonage2.h.

Referenced by deinit(), and initResources().


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