ScummVM API documentation
Made::GameDatabase Class Referenceabstract
Inheritance diagram for Made::GameDatabase:
Made::GameDatabaseV2 Made::GameDatabaseV3

Public Member Functions

 GameDatabase (MadeEngine *vm)
 
void open (const char *filename)
 
void openFromRed (const char *redFilename, const char *filename)
 
void reload ()
 
ObjectgetObject (int16 index) const
 
uint getObjectCount () const
 
int16 getMainCodeObjectIndex () const
 
int16 getVar (int16 index)
 
void setVar (int16 index, int16 value)
 
const char * getObjectString (int16 index)
 
void setObjectString (int16 index, const char *str)
 
virtual int16 * findObjectProperty (int16 objectIndex, int16 propertyId, int16 &propertyFlag)=0
 
int16 * findObjectPropertyCached (int16 objectIndex, int16 propertyId, int16 &propertyFlag)
 
virtual const char * getString (uint16 offset)=0
 
virtual bool getSavegameDescription (const char *filename, Common::String &description, int16 version)=0
 
virtual int16 savegame (const char *filename, const char *description, int16 version)=0
 
virtual int16 loadgame (const char *filename, int16 version)=0
 
int16 getObjectProperty (int16 objectIndex, int16 propertyId)
 
int16 setObjectProperty (int16 objectIndex, int16 propertyId, int16 value)
 
void dumpObject (int16 index)
 

Protected Types

typedef Common::HashMap< uint32, int16 * > ObjectPropertyCacheMap
 

Protected Member Functions

virtual void load (Common::SeekableReadStream &sourceS)=0
 
virtual void reloadFromStream (Common::SeekableReadStream &sourceS)=0
 

Protected Attributes

MadeEngine_vm
 
Common::Array< Object * > _objects
 
ObjectPropertyCacheMap _objectPropertyCache
 
byte * _gameState
 
uint32 _gameStateSize
 
int16 _mainCodeObjectIndex
 
bool _isRedSource
 
Common::String _filename
 
Common::String _redFilename
 

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