xoreos
0.0.5
|
#include <game.h>
Public Member Functions | |
Game (DragonAge2Engine &engine, ::Engines::Console &console) | |
~Game () | |
Campaigns & | getCampaigns () |
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 |
Engines::DragonAge2::Game::Game | ( | DragonAge2Engine & | engine, |
::Engines::Console & | console | ||
) |
Definition at line 48 of file game.cpp.
References _functions.
Campaigns & Engines::DragonAge2::Game::getCampaigns | ( | ) |
Return the campaigns context.
Definition at line 57 of file game.cpp.
References _campaigns.
Referenced by Engines::DragonAge2::Console::cmdListAreas(), Engines::DragonAge2::Console::cmdListCampaigns(), Engines::DragonAge2::Console::cmdLoadArea(), Engines::DragonAge2::Console::cmdLoadCampaign(), Engines::DragonAge2::Functions::doAreaTransition(), Engines::DragonAge2::Functions::getArea(), Engines::DragonAge2::Functions::getHero(), Engines::DragonAge2::Functions::getModule(), Engines::DragonAge2::Functions::getNearestObject(), Engines::DragonAge2::Functions::getNearestObjectByTag(), Engines::DragonAge2::Functions::getObjectByTag(), Engines::DragonAge2::Functions::isHero(), Engines::DragonAge2::Console::updateAreas(), Engines::DragonAge2::Console::updateCampaigns(), and Engines::DragonAge2::Functions::UT_getNearestObjectByTag().
|
staticprivate |
Definition at line 205 of file game.cpp.
References Common::FileList::begin(), Common::FileList::end(), Common::UString::equalsIgnoreCase(), EventMan, Common::FilePath::findSubDirectory(), Common::FilePath::getExtension(), Engines::indexMandatoryArchive(), Common::FileList::relativize(), ResMan, and Common::FileList::sort().
Referenced by loadResources(), and loadTexturePack().
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().
|
static |
Load all game resource archives found in this directory.
Definition at line 105 of file game.cpp.
References Common::FileList::begin(), Common::FileList::end(), Common::FilePath::findSubDirectory(), Engines::DragonAge2::DragonAge2Engine::getLanguageString(), Engines::indexOptionalArchive(), Engines::indexOptionalDirectory(), loadResourceDir(), Common::FileList::relativize(), and ResMan.
|
staticprivate |
Definition at line 195 of file game.cpp.
References Engines::DragonAge2::DragonAge2Engine::getLanguageString(), and TalkMan.
Referenced by loadTalkTables().
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().
|
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().
|
static |
Definition at line 139 of file game.cpp.
References Engines::DragonAge2::kTextureQualityMAX, and loadResourceDir().
Referenced by Engines::DragonAge2::Campaign::loadResources().
void Engines::DragonAge2::Game::run | ( | ) |
Definition at line 63 of file game.cpp.
References _campaigns, _console, EventMan, and runCampaigns().
|
private |
Definition at line 73 of file game.cpp.
References _campaigns, Engines::DragonAge2::Creature::createFakePC(), and EventMan.
Referenced by run().
|
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().
|
private |
Definition at line 84 of file game.h.
Referenced by getCampaigns(), run(), and runCampaigns().
|
private |
|
private |
Definition at line 82 of file game.h.
Referenced by loadResources(), and loadTalkTables().
|
private |