xoreos  0.0.5
Namespaces | Functions
util.h File Reference

Generic Aurora engines utility functions. More...

#include "src/common/ustring.h"
#include "src/aurora/types.h"
#include "src/sound/types.h"
Include dependency graph for util.h:

Go to the source code of this file.

Namespaces

 Common
 
 Aurora
 
 Engines
 

Functions

void Engines::playVideo (const Common::UString &video)
 Play this video resource. More...
 
Sound::ChannelHandle Engines::playSound (const Common::UString &sound, Sound::SoundType soundType, bool loop=false, float volume=1.0f, bool pitchVariance=false)
 Play this sound resource. More...
 
void Engines::checkConfigInt (const Common::UString &key, int min, int max)
 Make sure that an int config value is in the right range. More...
 
void Engines::checkConfigDouble (const Common::UString &key, double min, double max)
 Make sure that a double config value is in the right range. More...
 
bool Engines::longDelay (uint32 ms)
 Wait for a "long" amount of time, returning prematurely with true in the case of a requested quit. More...
 
Aurora::GFF3FileEngines::loadOptionalGFF3 (const Common::UString &gff3, Aurora::FileType type, uint32 id=0xFFFFFFFF, bool repairNWNPremium=false)
 Load a GFF3, but return 0 instead of throwing on error. More...
 
Aurora::GFF4FileEngines::loadOptionalGFF4 (const Common::UString &gff4, Aurora::FileType fileType, uint32 type=0xFFFFFFFF)
 Load a GFF4, but return 0 instead of throwing on error. More...
 
bool Engines::dumpResList (const Common::UString &name)
 Debug method to quickly dump the current list of resource to disk. More...
 
bool Engines::dumpStream (Common::SeekableReadStream &stream, const Common::UString &fileName)
 Debug method to quickly dump a stream to disk. More...
 
bool Engines::dumpResource (const Common::UString &name, Aurora::FileType type, const Common::UString &file="")
 Debug method to quickly dump a resource to disk. More...
 
bool Engines::dumpResource (const Common::UString &name, const Common::UString &file="")
 Debug method to quickly dump a resource to disk. More...
 
bool Engines::dumpTGA (const Common::UString &name, const Common::UString &file="")
 Debug method to quickly dump an image resource to disk. More...
 
bool Engines::dump2DA (const Common::UString &name, const Common::UString &file="")
 Debug method to quickly dump a 2DA to disk. More...
 

Detailed Description

Generic Aurora engines utility functions.

Definition in file util.h.