xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Aurora::TalkTable Class Referenceabstract

Base class for BioWare's talk tables. More...

#include <talktable.h>

Inheritance diagram for Aurora::TalkTable:
Inheritance graph
[legend]
Collaboration diagram for Aurora::TalkTable:
Collaboration graph
[legend]

Public Member Functions

virtual ~TalkTable ()
 
virtual bool hasEntry (uint32 strRef) const =0
 
virtual const Common::UStringgetString (uint32 strRef) const =0
 
virtual const Common::UStringgetSoundResRef (uint32 strRef) const =0
 
virtual uint32 getSoundID (uint32 strRef) const =0
 

Static Public Member Functions

static TalkTableload (Common::SeekableReadStream *tlk, Common::Encoding encoding)
 Take over this stream and read a talk table (of either format) out of it. More...
 

Protected Member Functions

 TalkTable (Common::Encoding encoding)
 

Protected Attributes

Common::Encoding _encoding
 

Detailed Description

Base class for BioWare's talk tables.

A talk table contains localized string data, and optional voice- over resource names, indexed by a string reference ("StrRef").

A single talktable always contains strings in a single language (and for a single gender of the PC), and commonly all strings for a given context (module, campaign, ...).

See classes TalkTable_TLK and TalkTable_GFF for the two main formats a talk table can be found in.

Definition at line 52 of file talktable.h.

Constructor & Destructor Documentation

◆ ~TalkTable()

Aurora::TalkTable::~TalkTable ( )
virtual

Definition at line 42 of file talktable.cpp.

◆ TalkTable()

Aurora::TalkTable::TalkTable ( Common::Encoding  encoding)
protected

Definition at line 39 of file talktable.cpp.

Member Function Documentation

◆ getSoundID()

virtual uint32 Aurora::TalkTable::getSoundID ( uint32  strRef) const
pure virtual

◆ getSoundResRef()

virtual const Common::UString& Aurora::TalkTable::getSoundResRef ( uint32  strRef) const
pure virtual

Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.

Referenced by Aurora::TalkManager::getSoundResRef().

Here is the caller graph for this function:

◆ getString()

virtual const Common::UString& Aurora::TalkTable::getString ( uint32  strRef) const
pure virtual

Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.

Referenced by Aurora::TalkManager::getString().

Here is the caller graph for this function:

◆ hasEntry()

virtual bool Aurora::TalkTable::hasEntry ( uint32  strRef) const
pure virtual

◆ load()

TalkTable * Aurora::TalkTable::load ( Common::SeekableReadStream tlk,
Common::Encoding  encoding 
)
static

Take over this stream and read a talk table (of either format) out of it.

Definition at line 45 of file talktable.cpp.

References kGFFID, kTLKID, Aurora::AuroraFile::readHeader(), and Common::ScopedPtrBase< T, Deallocator >::release().

Referenced by Aurora::loadTable().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _encoding

Common::Encoding Aurora::TalkTable::_encoding
protected

The documentation for this class was generated from the following files: