#include <savehandler.h>
Public Member Functions | |
SlotFile (GobEngine *vm, uint32 slotCount, const Common::String &base) | |
virtual int | getSlot (int32 offset) const =0 |
virtual int | getSlotRemainder (int32 offset) const =0 |
Protected Attributes | |
GobEngine * | _vm |
Common::String | _base |
uint32 | _slotCount |
Slot file related class.
Gob::SlotFile::SlotFile | ( | GobEngine * | vm, |
uint32 | slotCount, | ||
const Common::String & | base | ||
) |
The constructor.
slotCount | Number of slots. |
base | The file's base string. |
|
pure virtual |
Calculates which slot to use.
Implemented in Gob::SaveLoad_v4::GameHandler::File, Gob::SaveLoad_Inca2::GameHandler::File, Gob::SaveLoad_v3::GameHandler::File, and Gob::SlotFileStatic.
|
pure virtual |
Calculates the slot remainder, for error checking.
Implemented in Gob::SaveLoad_v4::GameHandler::File, Gob::SaveLoad_Inca2::GameHandler::File, Gob::SaveLoad_v3::GameHandler::File, and Gob::SlotFileStatic.