ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <savegame.h>

Collaboration diagram for Grim::SaveGame:

List of all members.

Public Member Functions

 ~SaveGame ()
bool isCompatible () const
uint saveMajorVersion () const
uint saveMinorVersion () const
uint32 beginSection (uint32 sectionTag)
void endSection ()
void read (void *data, int size)
void write (const void *data, int size)
uint64 readLEUint64 ()
uint32 readLEUint32 ()
uint16 readLEUint16 ()
int32 readLESint32 ()
bool readBool ()
byte readByte ()
void writeLEUint64 (uint64 data)
void writeLEUint32 (uint32 data)
void writeLEUint16 (uint16 data)
void writeLESint32 (int32 data)
void writeBool (bool data)
void writeByte (byte data)
void writeString (const Common::String &string)
void writeVector3d (const Math::Vector3d &vec)
void writeColor (const Grim::Color &color)
void writeFloat (float data)
Math::Vector3d readVector3d ()
Grim::Color readColor ()
float readFloat ()
Common::String readString ()
void checkAlloc (int size)

Static Public Member Functions

static SaveGameopenForLoading (const Common::String &filename)
static SaveGameopenForSaving (const Common::String &filename)

Static Public Attributes

 Major savegame version.
 Minor savegame version.

Protected Member Functions

 SaveGame ()

Protected Attributes

uint _majorVersion
uint _minorVersion
bool _saving
uint32 _currentSection
uint32 _sectionSize
uint32 _sectionAlloc
uint32 _sectionPtr

Static Protected Attributes

static const int _allocAmmount = 1048576

Detailed Description

Definition at line 34 of file savegame.h.

Constructor & Destructor Documentation

Grim::SaveGame::~SaveGame (  ) 

Definition at line 92 of file savegame.cpp.

Grim::SaveGame::SaveGame (  )  [protected]

Definition at line 85 of file savegame.cpp.

Member Function Documentation

uint32 Grim::SaveGame::beginSection ( uint32  sectionTag  ) 

Definition at line 117 of file savegame.cpp.

void Grim::SaveGame::checkAlloc ( int  size  ) 

Definition at line 231 of file savegame.cpp.

void Grim::SaveGame::endSection (  ) 

Definition at line 157 of file savegame.cpp.

bool Grim::SaveGame::isCompatible (  )  const

Definition at line 105 of file savegame.cpp.

SaveGame * Grim::SaveGame::openForLoading ( const Common::String filename  )  [static]

Definition at line 40 of file savegame.cpp.

SaveGame * Grim::SaveGame::openForSaving ( const Common::String filename  )  [static]

Definition at line 63 of file savegame.cpp.

void Grim::SaveGame::read ( void *  data,
int  size 

Definition at line 168 of file savegame.cpp.

bool Grim::SaveGame::readBool (  ) 

Definition at line 227 of file savegame.cpp.

byte Grim::SaveGame::readByte (  ) 

Definition at line 217 of file savegame.cpp.

Grim::Color Grim::SaveGame::readColor (  ) 

Definition at line 348 of file savegame.cpp.

float Grim::SaveGame::readFloat (  ) 

Definition at line 357 of file savegame.cpp.

int32 Grim::SaveGame::readLESint32 (  ) 

Definition at line 207 of file savegame.cpp.

uint16 Grim::SaveGame::readLEUint16 (  ) 

Definition at line 197 of file savegame.cpp.

uint32 Grim::SaveGame::readLEUint32 (  ) 

Definition at line 187 of file savegame.cpp.

uint64 Grim::SaveGame::readLEUint64 (  ) 

Definition at line 177 of file savegame.cpp.

Common::String Grim::SaveGame::readString (  ) 

Definition at line 365 of file savegame.cpp.

Math::Vector3d Grim::SaveGame::readVector3d (  ) 

Definition at line 341 of file savegame.cpp.

uint Grim::SaveGame::saveMajorVersion (  )  const

Definition at line 109 of file savegame.cpp.

uint Grim::SaveGame::saveMinorVersion (  )  const

Definition at line 113 of file savegame.cpp.

void Grim::SaveGame::write ( const void *  data,
int  size 

Definition at line 241 of file savegame.cpp.

void Grim::SaveGame::writeBool ( bool  data  ) 

Definition at line 301 of file savegame.cpp.

void Grim::SaveGame::writeByte ( byte  data  ) 

Definition at line 305 of file savegame.cpp.

void Grim::SaveGame::writeColor ( const Grim::Color color  ) 

Definition at line 323 of file savegame.cpp.

void Grim::SaveGame::writeFloat ( float  data  ) 

Definition at line 329 of file savegame.cpp.

void Grim::SaveGame::writeLESint32 ( int32  data  ) 

Definition at line 289 of file savegame.cpp.

void Grim::SaveGame::writeLEUint16 ( uint16  data  ) 

Definition at line 277 of file savegame.cpp.

void Grim::SaveGame::writeLEUint32 ( uint32  data  ) 

Definition at line 265 of file savegame.cpp.

void Grim::SaveGame::writeLEUint64 ( uint64  data  ) 

Definition at line 253 of file savegame.cpp.

void Grim::SaveGame::writeString ( const Common::String string  ) 

Definition at line 335 of file savegame.cpp.

void Grim::SaveGame::writeVector3d ( const Math::Vector3d vec  ) 

Definition at line 317 of file savegame.cpp.

Member Data Documentation

const int Grim::SaveGame::_allocAmmount = 1048576 [static, protected]

Definition at line 100 of file savegame.h.

Definition at line 94 of file savegame.h.

Definition at line 92 of file savegame.h.

Definition at line 89 of file savegame.h.

Definition at line 90 of file savegame.h.

Definition at line 93 of file savegame.h.

bool Grim::SaveGame::_saving [protected]

Definition at line 91 of file savegame.h.

Definition at line 96 of file savegame.h.

Definition at line 98 of file savegame.h.

Definition at line 97 of file savegame.h.

Definition at line 95 of file savegame.h.

Major savegame version.

If a savegame has a different major version than SAVEGAME_MAJOR_VERSION it cannot be loaded.

Definition at line 45 of file savegame.h.

Minor savegame version.

A savegame with a different minor version than SAVEGAME_MINOR_VERSION and the same major version than SAVEGAME_MAJOR_VERSION is compatible with the current loading code.

Definition at line 52 of file savegame.h.

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

Generated on Sat Sep 12 2020 05:04:42 for ResidualVM by doxygen 1.7.1
curved edge   curved edge