xoreos
0.0.5
|
#include <game.h>
Public Member Functions | |
Game (DragonAgeEngine &engine, ::Engines::Console &console) | |
~Game () | |
Campaigns & | getCampaigns () |
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 |
Engines::DragonAge::Game::Game | ( | DragonAgeEngine & | engine, |
::Engines::Console & | console | ||
) |
Definition at line 48 of file game.cpp.
References _functions.
Campaigns & Engines::DragonAge::Game::getCampaigns | ( | ) |
Return the campaigns context.
Definition at line 57 of file game.cpp.
References _campaigns.
Referenced by Engines::DragonAge::Console::cmdListAreas(), Engines::DragonAge::Console::cmdListCampaigns(), Engines::DragonAge::Console::cmdLoadArea(), Engines::DragonAge::Console::cmdLoadCampaign(), Engines::DragonAge::Functions::getArea(), Engines::DragonAge::Functions::getHero(), Engines::DragonAge::Functions::getModule(), Engines::DragonAge::Functions::getNearestObject(), Engines::DragonAge::Functions::getNearestObjectByTag(), Engines::DragonAge::Functions::getObjectByTag(), Engines::DragonAge::Functions::isHero(), Engines::DragonAge::Console::updateAreas(), Engines::DragonAge::Console::updateCampaigns(), and Engines::DragonAge::Functions::UT_getNearestObjectByTag().
|
staticprivate |
Definition at line 178 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().
|
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().
|
staticprivate |
Definition at line 168 of file game.cpp.
References Engines::DragonAge::DragonAgeEngine::getLanguageString(), and TalkMan.
Referenced by loadTalkTables().
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().
|
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().
|
static |
Definition at line 124 of file game.cpp.
References Engines::DragonAge::kTextureQualityMAX, and loadResourceDir().
Referenced by Engines::DragonAge::Campaign::loadResources().
void Engines::DragonAge::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::DragonAge::Creature::createFakePC(), and EventMan.
Referenced by run().
|
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().
|
private |
Definition at line 81 of file game.h.
Referenced by getCampaigns(), run(), and runCampaigns().
|
private |
|
private |
Definition at line 79 of file game.h.
Referenced by loadTalkTables().
|
private |