#include <savehandler.h>
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) |
A handler for temporary sprites.
|
overridevirtual |
Returns the file's (virtual) size.
Implements Gob::SaveHandler.
Reimplemented in Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, and Gob::SaveLoad_Adibou1::SpriteHandler.
|
overridevirtual |
Loads (parts of) the file.
Implements Gob::SaveHandler.
Reimplemented in Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, and Gob::SaveLoad_Adibou1::SpriteHandler.
|
overridevirtual |
Saves (parts of) the file.
Implements Gob::SaveHandler.
Reimplemented in Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, and Gob::SaveLoad_Adibou1::SpriteHandler.
|
staticprotected |
Determine whether it's a dummy sprite save/load.
|
staticprotected |
Determine whether using a sprite was requested.
|
staticprotected |
Determine which sprite is meant.
|
staticprotected |
Determine whether the palette should be used too.