ScummVM API documentation
Gob::DECFile Class Reference

#include <decfile.h>

Public Member Functions

 DECFile (GobEngine *vm, const Common::String &fileName, uint16 width, uint16 height, uint8 bpp=1)
 
void draw (Surface &dest) const
 
void drawBackdrop (Surface &dest) const
 
void drawLayer (Surface &dest, uint16 layer, uint16 part, uint16 x, uint16 y, int32 transp=-1) const
 

Detailed Description

A DEC file, describing a "decal" (background).

Used in hardcoded "actiony" parts of gob games. The principle is similar to a Static in Scenery (see scenery.cpp), but instead of referencing indices in the sprites array, DECs reference sprites directly by filename.

Member Function Documentation

◆ draw()

void Gob::DECFile::draw ( Surface dest) const

Draw the background, including all default layer parts.

◆ drawBackdrop()

void Gob::DECFile::drawBackdrop ( Surface dest) const

Explicitly draw the backdrop.

◆ drawLayer()

void Gob::DECFile::drawLayer ( Surface dest,
uint16  layer,
uint16  part,
uint16  x,
uint16  y,
int32  transp = -1 
) const

Explicitly draw a layer part.


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