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::DragonAge2::Game Class Reference

#include <game.h>

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

Public Member Functions

 Game (DragonAge2Engine &engine, ::Engines::Console &console)
 
 ~Game ()
 
CampaignsgetCampaigns ()
 Return the campaigns context. More...
 
void run ()
 
void loadResources (const Common::UString &dir, uint32 priority, ChangeList &res)
 Load all game resource archives in the current language found in this directory. More...
 
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, Aurora::Language language)
 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, const Common::UString &suffix, Aurora::Language language, uint32 priority, ChangeList &changes)
 

Private Attributes

DragonAge2Engine_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::DragonAge2::Game::Game ( DragonAge2Engine engine,
::Engines::Console console 
)

Definition at line 48 of file game.cpp.

References _functions.

◆ ~Game()

Engines::DragonAge2::Game::~Game ( )

Definition at line 54 of file game.cpp.

Member Function Documentation

◆ getCampaigns()

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

◆ loadResourceDir()

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

◆ loadResources() [1/2]

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

Load all game resource archives in the current language found in this directory.

Definition at line 150 of file game.cpp.

References _engine, Engines::DragonAge2::DragonAge2Engine::getLanguage(), and Aurora::kLanguageInvalid.

Referenced by Engines::DragonAge2::DragonAge2Engine::initResources(), and Engines::DragonAge2::Campaign::loadResources().

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

◆ loadResources() [2/2]

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

◆ loadTalkTable()

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

Definition at line 195 of file game.cpp.

References Engines::DragonAge2::DragonAge2Engine::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::DragonAge2::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 157 of file game.cpp.

References _engine, Engines::DragonAge2::DragonAge2Engine::getLanguage(), and Aurora::kLanguageInvalid.

Referenced by Engines::DragonAge2::DragonAge2Engine::initResources(), and Engines::DragonAge2::Campaign::loadResources().

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

◆ loadTalkTables() [2/2]

void Engines::DragonAge2::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 164 of file game.cpp.

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

Here is the call graph for this function:

◆ loadTexturePack()

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

Definition at line 139 of file game.cpp.

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

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

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

◆ run()

void Engines::DragonAge2::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::DragonAge2::Game::runCampaigns ( )
private

Definition at line 73 of file game.cpp.

References _campaigns, Engines::DragonAge2::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::DragonAge2::Game::unloadTalkTables ( ChangeList changes)
static

Unload this set of talk tables.

Definition at line 220 of file game.cpp.

References TalkMan.

Referenced by Engines::DragonAge2::DragonAge2Engine::deinit(), and Engines::DragonAge2::Campaign::unload().

Here is the caller graph for this function:

Member Data Documentation

◆ _campaigns

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

Definition at line 84 of file game.h.

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

◆ _console

::Engines::Console* Engines::DragonAge2::Game::_console
private

Definition at line 87 of file game.h.

Referenced by run().

◆ _engine

DragonAge2Engine* Engines::DragonAge2::Game::_engine
private

Definition at line 82 of file game.h.

Referenced by loadResources(), and loadTalkTables().

◆ _functions

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

Definition at line 85 of file game.h.

Referenced by Game().


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