ScummVM API documentation
TwinE::Resources Class Reference

Public Member Functions

 Resources (TwinEEngine *engine)
 
const Common::Array< int32 > & getMovieInfo (const Common::String &name) const
 
void initResources ()
 
const TrajectorygiveTrajPtr (int index) const
 
const TrajectoryDatagetTrajectories () const
 
void loadEntityData (EntityData &entityData, int32 &index)
 
const TextEntrygetText (TextBankId textBankId, TextId index) const
 
const T_ANIM_3DSgetAnim (int index) const
 
int findSmkMovieIndex (const char *name) const
 
TwineImage adelineLogo () const
 
TwineImage lbaLogo () const
 
TwineImage eaLogo () const
 
TwineImage activisionLogo () const
 
TwineImage virginLogo () const
 
TwineImage relentLogo () const
 
TwineImage menuBackground () const
 

Public Attributes

BodyData _inventoryTable [NUM_INVENTORY_ITEMS]
 
uint8 * _spriteTable [NUM_SPRITES] {nullptr}
 
uint32 _spriteSizeTable [NUM_SPRITES] {0}
 
SpriteData _spriteData [NUM_SPRITES]
 
AnimData _animData [2083]
 
uint8 * _samplesTable [895] {nullptr}
 
uint32 _samplesSizeTable [895] {0}
 
int32 _fontBufSize = 0
 
uint8 * _fontPtr = nullptr
 
uint8 * _sjisFontPtr = nullptr
 
SpriteData _spriteShadowPtr
 
SpriteBoundingBoxData _spriteBoundingBox
 
BodyData _holomapPointModelPtr
 
BodyData _holomapTwinsenModelPtr
 
BodyData _holomapTwinsenArrowPtr
 
BodyData _holomapArrowPtr
 

Static Public Attributes

static constexpr const char * HQR_RESS_FILE = "ress.hqr"
 
static constexpr const char * HQR_TEXT_FILE = "text.hqr"
 
static constexpr const char * HQR_SAMPLES_FILE = "samples.hqr"
 
static constexpr const char * HQR_LBA_GRI_FILE = "lba_gri.hqr"
 
static constexpr const char * HQR_LBA_BLL_FILE = "lba_bll.hqr"
 
static constexpr const char * HQR_LBA_BRK_FILE = "lba_brk.hqr"
 
static constexpr const char * HQR_SCENE_FILE = "scene.hqr"
 
static constexpr const char * HQR_SCREEN_FILE = "screen.hqr"
 
static constexpr const char * HQR_SPRITES_FILE = "sprites.hqr"
 
static constexpr const char * HQR_FILE3D_FILE = "file3d.hqr"
 
static constexpr const char * HQR_BODY_FILE = "body.hqr"
 
static constexpr const char * HQR_ANIM_FILE = "anim.hqr"
 
static constexpr const char * HQR_ANIM3DS_FILE = "anim3ds.hqr"
 
static constexpr const char * HQR_INVOBJ_FILE = "invobj.hqr"
 
static constexpr const char * HQR_HOLOMAP_FILE = "holomap.hqr"
 
static constexpr const char * HQR_FLAGIF_FILE = "fla_gif.hqr"
 Floppy version of the game uses gifs for replacing the videos.
 
static constexpr const char * HQR_FLASAMP_FILE = "flasamp.hqr"
 
static constexpr const char * HQR_MIDI_MI_DOS_FILE = "midi_mi.hqr"
 
static constexpr const char * HQR_MIDI_MI_WIN_FILE = "midi_mi_win.hqr"
 
static constexpr const char * HQR_VIDEO_FILE = "video.hqr"
 

Member Function Documentation

◆ getMovieInfo()

const Common::Array<int32>& TwinE::Resources::getMovieInfo ( const Common::String name) const

For lba1 this is returning the gif images that are used as a placeholder for the fla movies For lba2 this is the list of videos that are mapped by their entry index

◆ initResources()

void TwinE::Resources::initResources ( )

Initialize resource pointers

Member Data Documentation

◆ _inventoryTable

BodyData TwinE::Resources::_inventoryTable[NUM_INVENTORY_ITEMS]

Table with all loaded samples

◆ _spriteTable

uint8* TwinE::Resources::_spriteTable[NUM_SPRITES] {nullptr}

Table with all loaded sprites

◆ _spriteSizeTable

uint32 TwinE::Resources::_spriteSizeTable[NUM_SPRITES] {0}

Table with all loaded sprite sizes

◆ _samplesTable

uint8* TwinE::Resources::_samplesTable[895] {nullptr}

Table with all loaded samples

◆ _samplesSizeTable

uint32 TwinE::Resources::_samplesSizeTable[895] {0}

Table with all loaded samples sizes

◆ _fontBufSize

int32 TwinE::Resources::_fontBufSize = 0

Font buffer pointer

◆ HQR_LBA_GRI_FILE

constexpr const char* TwinE::Resources::HQR_LBA_GRI_FILE = "lba_gri.hqr"
static

This file contains isometric grids that are used to display area backgrounds and define 3D shape of the surface. Each of the entries is associated with the entry of lba_bll.hqr with the same index. lba_bll entries define block sets for use with the grids. Each grid may use only one set of blocks (one entry of lba_bll.hqr).

◆ HQR_LBA_BRK_FILE

constexpr const char* TwinE::Resources::HQR_LBA_BRK_FILE = "lba_brk.hqr"
static

isometric bricks, which are some kind of tiles, that are used for building the terrains in LBA 1 isometric scenes. One brick is the tiniest piece of a grid, which has 64 x 64 x 25 cells. Bricks cannot be used directly on a grid, but instead they are grouped into blocks by block libraries, which are then referenced by grids Bricks are images or sprites in a special format.

◆ HQR_FILE3D_FILE

constexpr const char* TwinE::Resources::HQR_FILE3D_FILE = "file3d.hqr"
static

model/animation entities contains data associating 3D models (Body.hqr) with animations (Anim.hqr) for the game characters.


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