ScummVM API documentation
Gob::SlotFileStatic Class Reference

#include <savehandler.h>

Inheritance diagram for Gob::SlotFileStatic:
Gob::SlotFile

Public Member Functions

 SlotFileStatic (GobEngine *vm, const Common::String &base, const Common::String &ext)
 
int getSlot (int32 offset) const override
 
int getSlotRemainder (int32 offset) const override
 
Common::String build () const
 
virtual bool exists () const
 
virtual Common::InSaveFileopenRead () const
 
virtual Common::OutSaveFileopenWrite () const
 
- Public Member Functions inherited from Gob::SlotFile
 SlotFile (GobEngine *vm, uint32 slotCount, const Common::String &base)
 

Protected Attributes

Common::String _ext
 
- Protected Attributes inherited from Gob::SlotFile
GobEngine_vm
 
Common::String _base
 
uint32 _slotCount
 

Detailed Description

A static slot file ("foo.bar").

Member Function Documentation

◆ getSlot()

int Gob::SlotFileStatic::getSlot ( int32  offset) const
overridevirtual

Calculates which slot to use.

Implements Gob::SlotFile.

◆ getSlotRemainder()

int Gob::SlotFileStatic::getSlotRemainder ( int32  offset) const
overridevirtual

Calculates the slot remainder, for error checking.

Implements Gob::SlotFile.

◆ build()

Common::String Gob::SlotFileStatic::build ( ) const

Build the save file name.


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