xoreos  0.0.5
Namespaces | Functions
util.cpp File Reference

Generic Aurora engines utility functions. More...

#include <cstdlib>
#include "src/common/scopedptr.h"
#include "src/common/error.h"
#include "src/common/readstream.h"
#include "src/common/writefile.h"
#include "src/common/configman.h"
#include "src/common/debug.h"
#include "src/aurora/util.h"
#include "src/aurora/resman.h"
#include "src/aurora/gff3file.h"
#include "src/aurora/gff4file.h"
#include "src/aurora/2dafile.h"
#include "src/graphics/images/decoder.h"
#include "src/graphics/aurora/texture.h"
#include "src/sound/sound.h"
#include "src/video/aurora/videoplayer.h"
#include "src/events/events.h"
#include "src/engines/aurora/util.h"
Include dependency graph for util.cpp:

Go to the source code of this file.

Namespaces

 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.cpp.