49 _engine(&engine), _console(&console) {
127 static const char *
const kTextureQualityName[
kTextureQualityMAX] = {
"high",
"medium" };
132 loadResourceDir(dir +
"/textures/" + kTextureQualityName[quality], priority + 300, res);
154 files.relativize(tlkDir);
158 if (!f->toLower().endsWith(languageTLK))
175 TalkMan.addTable(tlkM, tlkF,
false, priority, &changes.back());
193 for (std::list<Common::ChangeID>::iterator t = changes.begin(); t != changes.end(); ++t)
#define ResMan
Shortcut for accessing the sound manager.
Game(DragonAgeEngine &engine, ::Engines::Console &console)
Common::ScopedPtr< Functions > _functions
static void loadResourceDir(const Common::UString &dir, uint32 priority, ChangeList &changes)
#define TalkMan
Shortcut for accessing the talk manager.
static void loadTexturePack(const Common::UString &dir, uint32 priority, ChangeList &res, TextureQuality quality)
A class holding an UTF-8 string.
bool getLanguage(Aurora::Language &language) const
Return the game's current language.
Engine class handling Dragon Age: Origins.
static UString getExtension(const UString &p)
Return a file name's extension.
The context holding a Dragon Age: Origins campaign.
A creature in a Dragon Age: Origins area.
bool equalsIgnoreCase(const UString &str) const
Campaigns & getCampaigns()
Return the campaigns context.
void truncate(const iterator &it)
std::list< UString >::const_iterator const_iterator
bool indexOptionalDirectory(const Common::UString &dir, const char *glob, int depth, uint32 priority, Common::ChangeID *changeID)
Add a directory to the resource manager, if it exists.
static Common::UString getLanguageString(Aurora::Language language)
Return the string Dragon Age: Origins uses to representing this language.
std::list< Common::ChangeID > ChangeList
Basic exceptions to throw.
void indexMandatoryArchive(const Common::UString &file, uint32 priority, const std::vector< byte > &password, Common::ChangeID *changeID)
The context handling the gameplay in Dragon Age: Origins.
The global events manager.
Common::ScopedPtr< Campaigns > _campaigns
::Engines::Console * _console
static void loadTalkTable(const Common::UString &tlk, Aurora::Language language, uint32 priority, ChangeList &changes)
#define EventMan
Shortcut for accessing the events manager.
void relativize(const Common::UString &basePath)
Express all files in this archive as relative to the given base path.
static void unloadTalkTables(ChangeList &changes)
Unload this set of talk tables.
static void loadResources(const Common::UString &dir, uint32 priority, ChangeList &res)
Load all game resource archives found in this directory.
size_t size() const
Return the size of the string, in characters.
A class representing an undoable change.
The global talk manager for Aurora strings.
void loadTalkTables(const Common::UString &dir, uint32 priority, ChangeList &res)
Load all talk tables in the current language found in this directory.
Dragon Age: Origins engine functions.
const_iterator begin() const
Return a const_iterator pointing to the beginning of the list.
void sort(bool caseInsensitive)
Sort this list alphabetically.
The context managing and running the Dragon Age: Origins campaigns.
void createFakePC()
Create a fake player character creature for testing purposes.
The global resource manager for Aurora resources.
Utility class for manipulating file paths.
const_iterator end() const
Return a const_iterator pointing past the end of the list.
static UString findSubDirectory(const UString &directory, const UString &subDirectory, bool caseInsensitive=false)
Find a directory's subdirectory.
DragonAgeEngine * _engine