xoreos
0.0.5
|
Base class for BioWare's talk tables. More...
#include <talktable.h>
Public Member Functions | |
virtual | ~TalkTable () |
virtual bool | hasEntry (uint32 strRef) const =0 |
virtual const Common::UString & | getString (uint32 strRef) const =0 |
virtual const Common::UString & | getSoundResRef (uint32 strRef) const =0 |
virtual uint32 | getSoundID (uint32 strRef) const =0 |
Static Public Member Functions | |
static TalkTable * | load (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 |
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.
|
virtual |
Definition at line 42 of file talktable.cpp.
|
protected |
Definition at line 39 of file talktable.cpp.
Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.
|
pure virtual |
Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.
Referenced by Aurora::TalkManager::getSoundResRef().
|
pure virtual |
Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.
Referenced by Aurora::TalkManager::getString().
|
pure virtual |
Implemented in Aurora::TalkTable_GFF, and Aurora::TalkTable_TLK.
|
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().
|
protected |
Definition at line 70 of file talktable.h.
Referenced by Aurora::TalkTable_TLK::readString(), and Aurora::TalkTable_GFF::readString02().