ScummVM API documentation
Gob::TempSpriteHandler Class Reference

#include <savehandler.h>

Inheritance diagram for Gob::TempSpriteHandler:
Gob::SaveHandler Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler Gob::SaveLoad_Adibou1::SpriteHandler Gob::SaveLoad_Inca2::ScreenshotHandler Gob::SaveLoad_v3::ScreenshotHandler Gob::SaveLoad_v6::AutoSpriteHandler Gob::SaveLoad_v6::SpriteHandler Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler Gob::SaveLoad_v7::SpriteHandler

Public Member Functions

 TempSpriteHandler (GobEngine *vm)
 
int32 getSize () override
 
bool load (int16 dataVar, int32 size, int32 offset) override
 
bool save (int16 dataVar, int32 size, int32 offset) override
 
bool loadToRaw (byte *ptr, int32 size, int32 offset) override
 
bool saveFromRaw (const byte *ptr, int32 size, int32 offset) override
 
bool create (uint32 width, uint32 height, bool trueColor)
 
bool createFromSprite (int16 dataVar, int32 size, int32 offset)
 
- Public Member Functions inherited from Gob::SaveHandler
 SaveHandler (GobEngine *vm)
 
virtual bool deleteFile ()
 

Protected Member Functions

SurfacePtr createSprite (int16 dataVar, int32 size, int32 offset)
 

Static Protected Member Functions

static bool isDummy (int32 size)
 
static bool isSprite (int32 size)
 
static int getIndex (int32 size)
 
static bool usesPalette (int32 size)
 

Protected Attributes

SavePartSprite_sprite
 
- Protected Attributes inherited from Gob::SaveHandler
GobEngine_vm
 

Additional Inherited Members

- Static Public Member Functions inherited from Gob::SaveHandler
static uint32 getVarSize (GobEngine *vm)
 

Detailed Description

A handler for temporary sprites.

Member Function Documentation

◆ getSize()

◆ load()

◆ save()

◆ isDummy()

static bool Gob::TempSpriteHandler::isDummy ( int32  size)
staticprotected

Determine whether it's a dummy sprite save/load.

◆ isSprite()

static bool Gob::TempSpriteHandler::isSprite ( int32  size)
staticprotected

Determine whether using a sprite was requested.

◆ getIndex()

static int Gob::TempSpriteHandler::getIndex ( int32  size)
staticprotected

Determine which sprite is meant.

◆ usesPalette()

static bool Gob::TempSpriteHandler::usesPalette ( int32  size)
staticprotected

Determine whether the palette should be used too.


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