xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Engines::DragonAge::Game Class Reference

#include <game.h>

Collaboration diagram for Engines::DragonAge::Game:
Collaboration graph
[legend]

Public Member Functions

 Game (DragonAgeEngine &engine, ::Engines::Console &console)
 
 ~Game ()
 
CampaignsgetCampaigns ()
 Return the campaigns context. More...
 
void run ()
 
void loadTalkTables (const Common::UString &dir, uint32 priority, ChangeList &res)
 Load all talk tables in the current language found in this directory. More...
 

Static Public Member Functions

static void loadResources (const Common::UString &dir, uint32 priority, ChangeList &res)
 Load all game resource archives found in this directory. More...
 
static void loadTalkTables (const Common::UString &dir, uint32 priority, ChangeList &res, Aurora::Language language)
 Load all texture packs found in this directory. More...
 
static void loadTexturePack (const Common::UString &dir, uint32 priority, ChangeList &res, TextureQuality quality)
 
static void unloadTalkTables (ChangeList &changes)
 Unload this set of talk tables. More...
 

Private Member Functions

void runCampaigns ()
 

Static Private Member Functions

static void loadResourceDir (const Common::UString &dir, uint32 priority, ChangeList &changes)
 
static void loadTalkTable (const Common::UString &tlk, Aurora::Language language, uint32 priority, ChangeList &changes)
 

Private Attributes

DragonAgeEngine_engine
 
Common::ScopedPtr< Campaigns_campaigns
 
Common::ScopedPtr< Functions_functions
 
::Engines::Console_console
 

Detailed Description

Definition at line 52 of file game.h.

Constructor & Destructor Documentation

◆ Game()

Engines::DragonAge::Game::Game ( DragonAgeEngine engine,
::Engines::Console console 
)

Definition at line 48 of file game.cpp.

References _functions.

◆ ~Game()

Engines::DragonAge::Game::~Game ( )

Definition at line 54 of file game.cpp.

Member Function Documentation

◆ getCampaigns()

Campaigns & Engines::DragonAge::Game::getCampaigns ( )

◆ loadResourceDir()

void Engines::DragonAge::Game::loadResourceDir ( const Common::UString dir,
uint32  priority,
ChangeList changes 
)
staticprivate

◆ loadResources()

void Engines::DragonAge::Game::loadResources ( const Common::UString dir,
uint32  priority,
ChangeList res 
)
static

Load all game resource archives found in this directory.

Definition at line 105 of file game.cpp.

References Engines::indexOptionalDirectory(), and loadResourceDir().

Referenced by Engines::DragonAge::DragonAgeEngine::initResources(), and Engines::DragonAge::Campaign::loadResources().

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

◆ loadTalkTable()

void Engines::DragonAge::Game::loadTalkTable ( const Common::UString tlk,
Aurora::Language  language,
uint32  priority,
ChangeList changes 
)
staticprivate

Definition at line 168 of file game.cpp.

References Engines::DragonAge::DragonAgeEngine::getLanguageString(), and TalkMan.

Referenced by loadTalkTables().

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

◆ loadTalkTables() [1/2]

void Engines::DragonAge::Game::loadTalkTables ( const Common::UString dir,
uint32  priority,
ChangeList res 
)

Load all talk tables in the current language found in this directory.

Definition at line 135 of file game.cpp.

References _engine, Engines::DragonAge::DragonAgeEngine::getLanguage(), and Aurora::kLanguageInvalid.

Referenced by Engines::DragonAge::DragonAgeEngine::initResources(), and Engines::DragonAge::Campaign::loadResources().

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

◆ loadTalkTables() [2/2]

void Engines::DragonAge::Game::loadTalkTables ( const Common::UString dir,
uint32  priority,
ChangeList res,
Aurora::Language  language 
)
static

Load all texture packs found in this directory.

Load all talk tables in this language found in this directory.

Definition at line 142 of file game.cpp.

References EventMan, Common::FilePath::findSubDirectory(), Engines::DragonAge::DragonAgeEngine::getLanguageString(), loadTalkTable(), ResMan, Common::UString::size(), and Common::UString::truncate().

Here is the call graph for this function:

◆ loadTexturePack()

void Engines::DragonAge::Game::loadTexturePack ( const Common::UString dir,
uint32  priority,
ChangeList res,
TextureQuality  quality 
)
static

Definition at line 124 of file game.cpp.

References Engines::DragonAge::kTextureQualityMAX, and loadResourceDir().

Referenced by Engines::DragonAge::Campaign::loadResources().

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

◆ run()

void Engines::DragonAge::Game::run ( )

Definition at line 63 of file game.cpp.

References _campaigns, _console, EventMan, and runCampaigns().

Here is the call graph for this function:

◆ runCampaigns()

void Engines::DragonAge::Game::runCampaigns ( )
private

Definition at line 73 of file game.cpp.

References _campaigns, Engines::DragonAge::Creature::createFakePC(), and EventMan.

Referenced by run().

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

◆ unloadTalkTables()

void Engines::DragonAge::Game::unloadTalkTables ( ChangeList changes)
static

Unload this set of talk tables.

Definition at line 192 of file game.cpp.

References TalkMan.

Referenced by Engines::DragonAge::DragonAgeEngine::deinit(), and Engines::DragonAge::Campaign::unload().

Here is the caller graph for this function:

Member Data Documentation

◆ _campaigns

Common::ScopedPtr<Campaigns> Engines::DragonAge::Game::_campaigns
private

Definition at line 81 of file game.h.

Referenced by getCampaigns(), run(), and runCampaigns().

◆ _console

::Engines::Console* Engines::DragonAge::Game::_console
private

Definition at line 84 of file game.h.

Referenced by run().

◆ _engine

DragonAgeEngine* Engines::DragonAge::Game::_engine
private

Definition at line 79 of file game.h.

Referenced by loadTalkTables().

◆ _functions

Common::ScopedPtr<Functions> Engines::DragonAge::Game::_functions
private

Definition at line 82 of file game.h.

Referenced by Game().


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